Remove bad calls to ThreadStart/ThreadEnd from SDLMain.cpp

This commit is contained in:
Henrik Rydgård
2026-07-26 13:44:53 +02:00
parent 8020b60dda
commit 6020fbcf0e
+1 -7
View File
@@ -1,3 +1,4 @@
#include <cstdlib>
#include <unistd.h>
#include <pwd.h>
@@ -2107,8 +2108,6 @@ int main(int argc, char *argv[]) {
// We use the emuthread both for OpenGL and Vulkan, but in OpenGL mode we also render from the main thread.
std::thread emuThread = EmuThread_Start(graphicsContext, new NativeApplication(), nullptr);
graphicsContext->ThreadStart();
InputStateTracker inputTracker{};
#if PPSSPP_PLATFORM(MAC)
@@ -2188,7 +2187,6 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "rebooting emu thread");
g_rebootEmuThread = false;
EmuThread_Join(graphicsContext, emuThread);
graphicsContext->ThreadEnd();
graphicsContext->ShutdownSurface();
fprintf(stderr, "OK, shutdown complete. starting up graphics again.\n");
@@ -2201,7 +2199,6 @@ int main(int argc, char *argv[]) {
}
emuThread = EmuThread_Start(graphicsContext, new NativeApplication(), nullptr);
graphicsContext->ThreadStart();
}
}
@@ -2209,9 +2206,6 @@ int main(int argc, char *argv[]) {
delete joystick;
// TODO: This seems redundant.
graphicsContext->ThreadEnd();
// Destroys Draw, which is used in NativeShutdown to shutdown.
graphicsContext->ShutdownSurface();
graphicsContext->ShutdownAPI();