summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-06-09 16:35:55 +0100
committerKeith Whitwell <[email protected]>2009-06-09 16:37:38 +0100
commit9192347443bc3db9ebeb4b5cc090133b63396b04 (patch)
treee06cbb82c9dae0b13b9b231f28dec2d8124eaef4
parentcb549775a577cc5c86fefdc7e208b9d5e1d25217 (diff)
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??
-rw-r--r--src/gallium/state_trackers/wgl/shared/stw_framebuffer.c3
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 f27f4cda218..a601fc5646b 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