Skip to content

Commit

Permalink
[client] fix early render issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed Dec 16, 2018
1 parent 3a8998f commit d1e3508
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, ""))
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d1e3508

Please sign in to comment.