winex11: Don't choose pixel formats with incorrect doublebuffer/stereo settings.
This commit is contained in:
parent
160258b637
commit
5221921fa6
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue