MakeCurrent race condition fix

This commit is contained in:
tfarley 2015-05-18 21:24:43 -07:00
parent 05dc633a8c
commit 16fbba3c2a
2 changed files with 3 additions and 2 deletions

View file

@ -216,6 +216,7 @@ void GMainWindow::BootGame(std::string filename) {
// Create and start the emulation thread
emu_thread = Common::make_unique<EmuThread>(render_window);
emit EmulationStarting(emu_thread.get());
render_window->moveContext();
emu_thread->start();
// BlockingQueuedConnection is important here, it makes sure we've finished refreshing our views before the CPU continues