mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
- 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:
parent
0ebe98d1e0
commit
72ecaba50a
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue