From d1e3508d559dc61d11b10090e63e0400bb0967e4 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 16 Dec 2018 11:02:51 +1100 Subject: [PATCH] [client] fix early render issue --- client/main.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/client/main.c b/client/main.c index b0ceede7..104194a7 100644 --- a/client/main.c +++ b/client/main.c @@ -921,6 +921,13 @@ int run() break; } + // start the renderThread so we don't just display junk + if (!(t_render = SDL_CreateThread(renderThread, "renderThread", NULL))) + { + DEBUG_ERROR("render create thread failed"); + break; + } + if (params.useSpice) { if (!spice_connect(params.spiceHost, params.spicePort, "")) @@ -948,13 +955,6 @@ int run() SDL_SetHintWithPriority(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1", SDL_HINT_OVERRIDE); SDL_SetEventFilter(eventFilter, NULL); - // start the renderThread so we don't just display junk - if (!(t_render = SDL_CreateThread(renderThread, "renderThread", NULL))) - { - DEBUG_ERROR("render create thread failed"); - break; - } - // flag the host that we are starting up this is important so that // the host wakes up if it is waiting on an interrupt, the host will // also send us the current mouse shape since we won't know it yet