From 986f92d0db60911898404d10e299256744da1285 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sun, 1 Aug 2021 04:07:25 -0400 Subject: [PATCH] [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. --- client/src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/main.c b/client/src/main.c index a3aaedc8..c8845a5f 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -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) {