Do not reset twodee context if dedicated server

This commit is contained in:
James R 2023-03-03 02:50:01 -08:00
parent 9eefb2e0ae
commit 546f8d88c3

View file

@ -803,8 +803,11 @@ void D_SRB2Loop(void)
HW3S_BeginFrameUpdate(); HW3S_BeginFrameUpdate();
#endif #endif
I_NewTwodeeFrame(); if (rendermode != render_none)
I_NewImguiFrame(); {
I_NewTwodeeFrame();
I_NewImguiFrame();
}
if (realtics > 0 || singletics) if (realtics > 0 || singletics)
{ {
@ -1497,8 +1500,11 @@ void D_SRB2Main(void)
CONS_Printf("I_StartupGraphics()...\n"); CONS_Printf("I_StartupGraphics()...\n");
I_StartupGraphics(); I_StartupGraphics();
I_NewTwodeeFrame(); if (rendermode != render_none)
I_NewImguiFrame(); {
I_NewTwodeeFrame();
I_NewImguiFrame();
}
#ifdef HWRENDER #ifdef HWRENDER
// Lactozilla: Add every hardware mode CVAR and CCMD. // Lactozilla: Add every hardware mode CVAR and CCMD.