mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-26 14:26:23 +02:00
Remove bad calls to ThreadStart/ThreadEnd from SDLMain.cpp
This commit is contained in:
+1
-7
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user