From e9d4b2f563a334864452d346c80556aaaaf5c8fe Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 8 Aug 2026 01:09:25 +1000 Subject: [PATCH] [client] tests: keep splash out of captures Hide the startup splash immediately after overlay initialization when a render-pipeline capture is requested. This occurs before the frame thread is released, so no EGL surface buffer can contain splash pixels. --- client/src/overlay/splash.c | 7 ++++--- client/tests/render_test.cpp | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/src/overlay/splash.c b/client/src/overlay/splash.c index 446fb88f..965d5bb0 100644 --- a/client/src/overlay/splash.c +++ b/client/src/overlay/splash.c @@ -99,10 +99,11 @@ static void drawRadialGradient(ImDrawList * list, int x, int y, int w, int h, static bool splash_init(void ** udata, const void * params) { - atomic_store_explicit(&l_requestedShow, true, memory_order_relaxed); + const bool show = strcmp(g_params.transport, "test") != 0; + atomic_store_explicit(&l_requestedShow, show, memory_order_relaxed); atomic_store_explicit(&l_fading, false, memory_order_relaxed); - l_appliedShow = true; - l_state = SPLASH_VISIBLE; + l_appliedShow = show; + l_state = show ? SPLASH_VISIBLE : SPLASH_HIDDEN; l_fadeStart = 0; overlayLoadSVG(b_lg_logo_svg, b_lg_logo_svg_size, &l_logo, 200, 200); diff --git a/client/tests/render_test.cpp b/client/tests/render_test.cpp index 760691a5..9da58d91 100644 --- a/client/tests/render_test.cpp +++ b/client/tests/render_test.cpp @@ -140,7 +140,7 @@ int runClient(const FormatCase & format, const char * damage, "test:realtime=no", captureFile, captureFrame, - "test:captureDelay=12", + "test:captureDelay=1", "win:size=" + size, "win:autoResize=no", "win:allowResize=no",