Commit 5221921f authored by Chris Robinson's avatar Chris Robinson Committed by Alexandre Julliard

winex11: Don't choose pixel formats with incorrect doublebuffer/stereo settings.

parent 160258b6
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment