Fix headless with OpenGL for SDL

This commit is contained in:
Henrik Rydgård
2026-08-05 00:15:56 +02:00
parent 551e4cd0ab
commit ecae62e737
7 changed files with 45 additions and 25 deletions
+1 -4
View File
@@ -102,10 +102,7 @@ bool RunMainLoop(GraphicsContext *graphicsContext, Application *application, std
g_inLoop = true;
while (frame(graphicsContext)) {
// We're here again, so the game quit. Restart Run() which controls the UI.
// This way they can load a new game.
}
while (frame(graphicsContext)) {}
// NOTE: Don't call stuff like Core_Stop here. On Android, we fully shut down graphics when you switch away from the app,
// then boot it up again when returning. That means stopping this thread and restarting it.