- fixed: When vr_quadbuffering is on and context creation fails, first retry without it before falling back on the compatibility handler.

This commit is contained in:
Christoph Oelckers 2017-03-14 13:50:33 +01:00
parent 0ebe98d1e0
commit 72ecaba50a

View file

@ -717,6 +717,7 @@ bool Win32GLVideo::SetupPixelFormat(int multisample)
if (myWglChoosePixelFormatARB)
{
again:
attributes[0] = WGL_RED_BITS_ARB; //bits
attributes[1] = 8;
attributes[2] = WGL_GREEN_BITS_ARB; //bits
@ -772,6 +773,12 @@ bool Win32GLVideo::SetupPixelFormat(int multisample)
if (numFormats == 0)
{
if (vr_enable_quadbuffered)
{
Printf("R_OPENGL: No valid pixel formats found for VR quadbuffering. Retrying without this feature\n");
vr_enable_quadbuffered = false;
goto again;
}
Printf("R_OPENGL: No valid pixel formats found. Retrying in compatibility mode\n");
goto oldmethod;
}