mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 10:13:43 +01:00
Fix #5390, crash on Exit on Windows.
This commit is contained in:
1 parent
6de30f5cbd
commit
80704d013e
3 files changed
+5
-2
No files matched your search
+3
-1
@@ -139,7 +139,9 @@ static inline void UpdateRunLoop() {
|
||||
NativeUpdate(input_state);
|
||||
EndInputState(&input_state);
|
||||
}
|
||||
NativeRender();
|
||||
if (globalUIState != UISTATE_EXIT) {
|
||||
NativeRender();
|
||||
}
|
||||
}
|
||||
|
||||
void Core_RunLoop() {
|
||||
|
||||
@@ -55,7 +55,7 @@ void EmuThread_Stop()
|
||||
// Already stopped?
|
||||
{
|
||||
lock_guard guard(emuThreadLock);
|
||||
if (emuThread == NULL)
|
||||
if (emuThread == NULL || emuThreadReady == THREAD_END)
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -104,6 +104,7 @@ bool WindowsHost::InitGL(std::string *error_message)
|
||||
void WindowsHost::ShutdownGL()
|
||||
{
|
||||
GL_Shutdown();
|
||||
PostMessage(MainWindow::GetHWND(), WM_CLOSE, 0, 0);
|
||||
}
|
||||
|
||||
void WindowsHost::SetWindowTitle(const char *message)
|
||||
|
||||
Reference in new issue
Block a user