disabled stereo checking in wglChoosePixelFormat

This commit is contained in:
Daniel Borca 2004-08-16 08:01:43 +00:00
parent a95aba7d1f
commit 616a5b64f9

View file

@ -860,9 +860,14 @@ wglChoosePixelFormat(HDC hdc, const PIXELFORMATDESCRIPTOR * ppfd)
if (!(pfd.dwFlags & PFD_DOUBLEBUFFER_DONTCARE)
&& ((pfd.dwFlags & PFD_DOUBLEBUFFER) !=
(pix[i].pfd.dwFlags & PFD_DOUBLEBUFFER))) continue;
#if 0 /* [dBorca] Hack alert:
* Doom3 fails here!
* Can we get away by implementing WGL_ARB_pixel_format?
*/
if (!(pfd.dwFlags & PFD_STEREO_DONTCARE)
&& ((pfd.dwFlags & PFD_STEREO) !=
(pix[i].pfd.dwFlags & PFD_STEREO))) continue;
#endif
if (pfd.cDepthBits > 0 && pix[i].pfd.cDepthBits == 0)
continue; /* need depth buffer */