summaryrefslogtreecommitdiff
path: root/src/egl
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2022-11-02 08:25:40 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2022-12-15 22:24:19 +0200
commitf5e202be2d10f58084ad6d115be5196fdd917da3 (patch)
tree7320e3bbafdaa1f6916899b37db6680c0c8cc80f /src/egl
parent437e2544ab534f2191f652c9b6b8c9b4a5b9c845 (diff)
downloadmesa-demos-f5e202be2d10f58084ad6d115be5196fdd917da3.tar.gz
xeglgears: Fix window resize
Fix the surface_type check during ConfigureNotify processing so that we'll actually resize the viewport to match the new window dimensions. Acked-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/opengl/xeglgears.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/opengl/xeglgears.c b/src/egl/opengl/xeglgears.c
index c95902fa..e3477114 100644
--- a/src/egl/opengl/xeglgears.c
+++ b/src/egl/opengl/xeglgears.c
@@ -667,7 +667,7 @@ event_loop(struct egl_manager *eman, EGLint surface_type, EGLint w, EGLint h)
case ConfigureNotify:
window_w = event.xconfigure.width;
window_h = event.xconfigure.height;
- if (surface_type == EGL_WINDOW_BIT)
+ if (surface_type == GEARS_WINDOW)
reshape(window_w, window_h);
break;
case KeyPress: