Mesa (master): xlib: fix single buffer window resize bug

Brian Paul brianp at kemper.freedesktop.org
Wed Aug 26 18:02:22 UTC 2009


Module: Mesa
Branch: master
Commit: b5ecbbe636dd0d2094921c5401e4268694c405ce
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b5ecbbe636dd0d2094921c5401e4268694c405ce

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Aug 24 12:58:47 2009 -0600

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...

---

 src/gallium/winsys/xlib/xlib_softpipe.c |    1 +
 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 44b8464..2a08b82 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);
 }
 
 




More information about the mesa-commit mailing list