Mesa (master): st/wgl: change PFD_SWAP_COPY to PFD_SWAP_EXCHANGE.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri May 30 17:52:53 UTC 2014


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

Author: Brian Paul <brianp at vmware.com>
Date:   Mon May 19 09:26:04 2014 -0600

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 <jfonseca at vmware.com>

---

 src/gallium/state_trackers/wgl/stw_pixelformat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/wgl/stw_pixelformat.c b/src/gallium/state_trackers/wgl/stw_pixelformat.c
index 1ef302d..dc5160d 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;
 




More information about the mesa-commit mailing list