- store the last found OpenGL version in the INI so that modern GL related options can be removed when running old hardware with software rendering.

This commit is contained in:
Christoph Oelckers 2017-05-08 19:30:51 +02:00
commit 762ba13cd9
4 changed files with 15 additions and 1 deletions

View file

@ -42,6 +42,8 @@ void gl_PatchMenu();
static TArray<FString> m_Extensions;
RenderContext gl;
EXTERN_CVAR(Bool, gl_legacy_mode)
//==========================================================================
//
//
@ -311,8 +313,8 @@ void gl_LoadExtensions()
FUDGE_FUNC(glRenderbufferStorage, EXT);
FUDGE_FUNC(glBindRenderbuffer, EXT);
FUDGE_FUNC(glCheckFramebufferStatus, EXT);
gl_PatchMenu();
}
gl_legacy_mode = gl.legacyMode;
}
//==========================================================================