From: Brian Paul Date: Mon, 19 May 2014 15:26:04 +0000 (-0600) Subject: st/wgl: change PFD_SWAP_COPY to PFD_SWAP_EXCHANGE. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4a5165562ec21c86dcc8069ef424485aa6f2ac3;p=mesa.git st/wgl: change PFD_SWAP_COPY to PFD_SWAP_EXCHANGE. To reflect our actual SwapBuffers implementation. See stw_st_swap_framebuffer_locked(). This fixes various rendering issues with SolidEdge. Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/state_trackers/wgl/stw_pixelformat.c b/src/gallium/state_trackers/wgl/stw_pixelformat.c index 1ef302d0ddb..dc5160d868e 100644 --- a/src/gallium/state_trackers/wgl/stw_pixelformat.c +++ b/src/gallium/state_trackers/wgl/stw_pixelformat.c @@ -158,7 +158,7 @@ stw_pixelformat_add( pfi->pfd.dwFlags |= PFD_SUPPORT_COMPOSITION; if (doublebuffer) - pfi->pfd.dwFlags |= PFD_DOUBLEBUFFER | PFD_SWAP_COPY; + pfi->pfd.dwFlags |= PFD_DOUBLEBUFFER | PFD_SWAP_EXCHANGE; pfi->pfd.iPixelType = PFD_TYPE_RGBA;