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