mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-26 10:06:42 +08:00
testprogram: let main() return normally, don't exit for platform (eg Android) where there is some cleanup afterward.
This commit is contained in:
+4
-1
@@ -187,7 +187,10 @@ static void quit(int rc)
|
||||
{
|
||||
shutdownVulkan(SDL_TRUE);
|
||||
SDLTest_CommonQuit(state);
|
||||
exit(rc);
|
||||
/* Let 'main()' return normally */
|
||||
if (rc != 0) {
|
||||
exit(rc);
|
||||
}
|
||||
}
|
||||
|
||||
static void loadGlobalFunctions(void)
|
||||
|
||||
Reference in New Issue
Block a user