egl: fix-up window resizes
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 30 May 2008 17:51:50 +0000 (11:51 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 30 May 2008 17:51:50 +0000 (11:51 -0600)
src/gallium/winsys/egl_xlib/egl_xlib.c

index 555bb8b7b49ca512d1ab11b01835b96cf51dde5f..b683898dcb022b3c30a2badb849fbbe4ecbb8fd9 100644 (file)
@@ -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;