- 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

@ -132,6 +132,7 @@ extern void M_SetDefaultMode ();
extern void G_NewInit ();
extern void SetupPlayerClasses ();
extern void HUD_InitHud();
void gl_PatchMenu(); // remove modern OpenGL options on old hardware.
void DeinitMenus();
const FIWADInfo *D_FindIWAD(TArray<FString> &wadfiles, const char *iwad, const char *basewad);
@ -2639,6 +2640,7 @@ void D_DoomMain (void)
}
V_Init2();
gl_PatchMenu();
UpdateJoystickMenu(NULL);
v = Args->CheckValue ("-loadgame");