[client] main: use skipFrame and signal frameEvent

We need to signal frameEvent to render the first frame. Otherwise, wayland
fails to configure the window, as configuration happens in EGL swap.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-08-01 18:54:55 +10:00
1 parent 2e4614cbc4
commit 986f92d0db
1 file changed
+4
+4
View File
@@ -173,7 +173,11 @@ static int renderThread(void * unused)
g_state.ds->waitFrame();
if (!lgResetEvent(g_state.frameEvent) && !g_state.overlayInput &&
!g_state.lgr->needs_render(g_state.lgrData))
{
if (g_state.ds->skipFrame)
g_state.ds->skipFrame();
continue;
}
}
else if (g_params.fpsMin != 0)
{