summaryrefslogtreecommitdiff
path: root/src/gallium/winsys
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/winsys')
-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;