st/wgl: change PFD_SWAP_COPY to PFD_SWAP_EXCHANGE.
authorBrian Paul <brianp@vmware.com>
Mon, 19 May 2014 15:26:04 +0000 (09:26 -0600)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 30 May 2014 17:52:39 +0000 (18:52 +0100)
To reflect our actual SwapBuffers implementation.  See
stw_st_swap_framebuffer_locked().  This fixes various rendering issues
with SolidEdge.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/state_trackers/wgl/stw_pixelformat.c

index 1ef302d0ddb234f5fa95f59ffc7e2b9ba871757a..dc5160d868e8247257f541ea2a62f028923508c4 100644 (file)
@@ -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;