diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp index 625e470735..bfc6de059d 100644 --- a/SDL/SDLMain.cpp +++ b/SDL/SDLMain.cpp @@ -457,9 +457,9 @@ static void EmuThreadFunc(GraphicsContext *graphicsContext) { UpdateRunLoop(); } emuThreadState = (int)EmuThreadState::STOPPED; + graphicsContext->StopThread(); NativeShutdownGraphics(); - graphicsContext->StopThread(); } static void EmuThreadStart(GraphicsContext *context) {