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

@ -28,11 +28,11 @@
EmuThread::EmuThread(GRenderWindow* render_window) :
exec_step(false), running(false), stop_run(false), render_window(render_window) {
connect(this, SIGNAL(started()), render_window, SLOT(moveContext()));
}
void EmuThread::run() {
render_window->MakeCurrent();
stop_run = false;
// holds whether the cpu was running during the last iteration,