summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-24 12:58:47 -0600
committerBrian Paul <[email protected]>2009-08-24 13:05:20 -0600
commit69170a4aae5aeb765e8ab9c61a3adfddcc5830ad (patch)
tree7a0daac7d979f8526bc3055f7f1034b7253061a0 /src/gallium/winsys
parent93aa0fd81c44c7a5f29f30e8f730e060597b06ad (diff)
xlib: fix single buffer window resize bug
When a single-buffered window was resized the new window size was never detected. This fix that, but there's still a bug which causes window contents corruption for certain window sizes...
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/xlib/xlib_softpipe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/winsys/xlib/xlib_softpipe.c b/src/gallium/winsys/xlib/xlib_softpipe.c
index 277e724d2ac..67fea023a3b 100644
--- a/src/gallium/winsys/xlib/xlib_softpipe.c
+++ b/src/gallium/winsys/xlib/xlib_softpipe.c
@@ -303,6 +303,7 @@ xm_flush_frontbuffer(struct pipe_winsys *pws,
*/
XMesaContext xmctx = (XMesaContext) context_private;
xlib_softpipe_display_surface(xmctx->xm_buffer, surf);
+ xmesa_check_and_update_buffer_size(xmctx, xmctx->xm_buffer);
}