Clear setrenderneeded after calling VID_CheckRenderer

This commit is contained in:
Jaime Passos 2020-02-17 00:36:10 -03:00
parent 7dac10f5f9
commit 9e83e2751d
2 changed files with 3 additions and 2 deletions

View file

@ -1291,12 +1291,14 @@ void D_SRB2Main(void)
// Lactozilla: Does the render mode need to change?
if ((setrenderneeded != 0) && (setrenderneeded != rendermode))
{
CONS_Printf("Switching the renderer...\n");
needpatchflush = true;
needpatchrecache = true;
VID_CheckRenderer();
SCR_ChangeRendererCVars(setrenderneeded);
D_CheckRendererState();
setrenderneeded = 0;
}
D_CheckRendererState();
wipegamestate = gamestate;

View file

@ -1499,7 +1499,6 @@ void VID_CheckRenderer(void)
{
I_StartupHardwareGraphics();
R_InitHardwareMode();
HWR_Switch();
}
#endif
}