[client] main: don't call stopWaitFrame if jitRender is not enabled

This commit is contained in:
Geoffrey McRae 2021-08-08 09:01:48 +10:00
parent 64da3465b8
commit 16f68d6b1b

View File

@ -1190,7 +1190,7 @@ static void lg_shutdown(void)
g_state.state = APP_STATE_SHUTDOWN;
if (t_render)
{
if (g_state.ds->stopWaitFrame)
if (g_state.jitRender && g_state.ds->stopWaitFrame)
g_state.ds->stopWaitFrame();
lgSignalEvent(e_startup);
lgSignalEvent(g_state.frameEvent);