2708: Disabling 3.3 in settings tab should reset to version 3.0 r=def- a=Jupeyy

We don't have a way to query the default config value, except including the config_variables.h, do we?

Co-authored-by: Jupeyy <jupjopjap@gmail.com>
This commit is contained in:
bors[bot] 2020-09-02 06:14:33 +00:00 committed by GitHub
commit 9b334e6fcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1025,8 +1025,8 @@ void CMenus::RenderSettingsGraphics(CUIRect MainView)
CheckSettings = true;
if(IsNewOpenGL)
{
g_Config.m_GfxOpenGLMajor = 2;
g_Config.m_GfxOpenGLMinor = 1;
g_Config.m_GfxOpenGLMajor = 3;
g_Config.m_GfxOpenGLMinor = 0;
g_Config.m_GfxOpenGLPatch = 0;
IsNewOpenGL = false;
}