From 5221921fa61fc3bcebff8435bc9e2ba6061c596f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 11 Sep 2007 13:00:13 -0700 Subject: [PATCH] winex11: Don't choose pixel formats with incorrect doublebuffer/stereo settings. --- dlls/winex11.drv/opengl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index f6216b66019..be215ae530f 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -1035,6 +1035,8 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev, bestFormat = i; continue; } + if(bestDBuffer != -1 && (dwFlags & PFD_DOUBLEBUFFER) != bestDBuffer) + continue; } /* Stereo, see the comments above. */ @@ -1052,6 +1054,8 @@ int X11DRV_ChoosePixelFormat(X11DRV_PDEVICE *physDev, bestFormat = i; continue; } + if(bestStereo != -1 && (dwFlags & PFD_STEREO) != bestStereo) + continue; } /* Below we will do a number of checks to select the 'best' pixelformat. -- 2.11.4.GIT