Mesa (mesa_7_5_branch): stw: ignore swapbuffer requests on singlebuffer
Keith Whitwell
keithw at kemper.freedesktop.org
Tue Jun 9 08:38:03 PDT 2009
Module: Mesa
Branch: mesa_7_5_branch
Commit: 9192347443bc3db9ebeb4b5cc090133b63396b04
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9192347443bc3db9ebeb4b5cc090133b63396b04
Author: Keith Whitwell <keithw at vmware.com>
Date: Tue Jun 9 16:35:55 2009 +0100
stw: ignore swapbuffer requests on singlebuffer
Return TRUE in this case. Returning FALSE seems to result in
mis-rendering -- possibly opengl32.dll is trying to compensate by
doing a software blit??
---
.../state_trackers/wgl/shared/stw_framebuffer.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gallium/state_trackers/wgl/shared/stw_framebuffer.c b/src/gallium/state_trackers/wgl/shared/stw_framebuffer.c
index f27f4cd..a601fc5 100644
--- a/src/gallium/state_trackers/wgl/shared/stw_framebuffer.c
+++ b/src/gallium/state_trackers/wgl/shared/stw_framebuffer.c
@@ -380,6 +380,9 @@ stw_swap_buffers(
if (fb == NULL)
return FALSE;
+ if (!(fb->pfi->pfd.dwFlags & PFD_DOUBLEBUFFER))
+ return TRUE;
+
pipe_mutex_lock( fb->mutex );
/* If we're swapping the buffer associated with the current context
More information about the mesa-commit
mailing list