mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-09 08:41:31 +00:00
[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.
This commit is contained in:
@@ -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)
|
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);
|
atomic_store_explicit(&l_fading, false, memory_order_relaxed);
|
||||||
l_appliedShow = true;
|
l_appliedShow = show;
|
||||||
l_state = SPLASH_VISIBLE;
|
l_state = show ? SPLASH_VISIBLE : SPLASH_HIDDEN;
|
||||||
l_fadeStart = 0;
|
l_fadeStart = 0;
|
||||||
|
|
||||||
overlayLoadSVG(b_lg_logo_svg, b_lg_logo_svg_size, &l_logo, 200, 200);
|
overlayLoadSVG(b_lg_logo_svg, b_lg_logo_svg_size, &l_logo, 200, 200);
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ int runClient(const FormatCase & format, const char * damage,
|
|||||||
"test:realtime=no",
|
"test:realtime=no",
|
||||||
captureFile,
|
captureFile,
|
||||||
captureFrame,
|
captureFrame,
|
||||||
"test:captureDelay=12",
|
"test:captureDelay=1",
|
||||||
"win:size=" + size,
|
"win:size=" + size,
|
||||||
"win:autoResize=no",
|
"win:autoResize=no",
|
||||||
"win:allowResize=no",
|
"win:allowResize=no",
|
||||||
|
|||||||
Reference in New Issue
Block a user