[client] app: fix segfault when jitRender + spice display is in use

This commit is contained in:
Geoffrey McRae 2022-05-28 00:52:03 +10:00
parent 8b8b580f63
commit 0799910e70

View File

@ -535,7 +535,7 @@ void app_invalidateWindow(bool full)
if (full)
atomic_store(&g_state.invalidateWindow, true);
if (g_state.jitRender && g_state.ds->stopWaitFrame)
if (g_state.dsInitialized && g_state.jitRender && g_state.ds->stopWaitFrame)
g_state.ds->stopWaitFrame();
lgSignalEvent(g_state.frameEvent);