- do same change as d33f2697a3

This commit is contained in:
Rachael Alexanderson 2023-10-01 10:47:15 -04:00
parent 295d9e690b
commit 1fa628b47e
4 changed files with 4 additions and 4 deletions

View file

@ -462,7 +462,7 @@ public:
if (fb == nullptr)
{
#ifdef HAVE_GLES2
if(V_GetBackend() == 2)
if(V_GetBackend() != 0)
fb = new OpenGLESRenderer::OpenGLFrameBuffer(0, vid_fullscreen);
else
#endif

View file

@ -315,7 +315,7 @@ DFrameBuffer *SDLVideo::CreateFrameBuffer ()
if (fb == nullptr)
{
#ifdef HAVE_GLES2
if (V_GetBackend() == 2)
if (V_GetBackend() != 0)
fb = new OpenGLESRenderer::OpenGLFrameBuffer(0, vid_fullscreen);
else
#endif

View file

@ -109,7 +109,7 @@ DFrameBuffer *Win32GLVideo::CreateFrameBuffer()
SystemGLFrameBuffer *fb;
#ifdef HAVE_GLES2
if (V_GetBackend() == 2)
if (V_GetBackend() != 0)
fb = new OpenGLESRenderer::OpenGLFrameBuffer(m_hMonitor, vid_fullscreen);
else
#endif

View file

@ -93,7 +93,7 @@ CUSTOM_CVAR(Int, vid_maxfps, 200, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
}
}
CUSTOM_CVAR(Int, vid_preferbackend, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
CUSTOM_CVAR(Int, vid_preferbackend, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
{
// [SP] This may seem pointless - but I don't want to implement live switching just
// yet - I'm pretty sure it's going to require a lot of reinits and destructions to