summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/egl_xlib
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-05-30 11:51:50 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-05-30 11:51:50 -0600
commit64d0eb111d5a19bc251dfc59884c945cf93c6bb0 (patch)
tree8e3d7cec7eee23c7df84af5001ebe3b1d6c4a3cd /src/gallium/winsys/egl_xlib
parent834aa8cfbc25622256889624ee1768c10224feb2 (diff)
egl: fix-up window resizes
Diffstat (limited to 'src/gallium/winsys/egl_xlib')
-rw-r--r--src/gallium/winsys/egl_xlib/egl_xlib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/winsys/egl_xlib/egl_xlib.c b/src/gallium/winsys/egl_xlib/egl_xlib.c
index 555bb8b7b4..b683898dcb 100644
--- a/src/gallium/winsys/egl_xlib/egl_xlib.c
+++ b/src/gallium/winsys/egl_xlib/egl_xlib.c
@@ -219,6 +219,8 @@ check_and_update_buffer_size(struct xlib_egl_surface *surface)
uint width, height;
get_drawable_size(surface->Dpy, surface->Win, &width, &height);
st_resize_framebuffer(surface->Framebuffer, width, height);
+ surface->Base.Width = width;
+ surface->Base.Height = height;
}
@@ -468,6 +470,8 @@ xlib_eglSwapBuffers(_EGLDriver *drv, EGLDisplay dpy, EGLSurface draw)
st_notify_swapbuffers(xsurf->Framebuffer);
display_surface(pws, psurf, xsurf);
+
+ check_and_update_buffer_size(xsurf);
}
return EGL_TRUE;