testprogram: let main() return normally, don't exit for platform (eg Android) where there is some cleanup afterward.

This commit is contained in:
Sylvain authored and Sylvain Becker committed 2023-04-12 11:37:26 +02:00
1 parent ec053ec4f8
commit c101e719fd
31 files changed
+123 -41

No files matched your search

+5 -2
View File
@@ -64,13 +64,16 @@ static SDL_Renderer *renderer;
static int frame;
static SDL_Texture *MooseTexture;
static SDL_bool done = SDL_FALSE;
SDLTest_CommonState *state;
static SDLTest_CommonState *state;
static void quit(int rc)
{
SDL_Quit();
SDLTest_CommonDestroyState(state);
exit(rc);
/* Let 'main()' return normally */
if (rc != 0) {
exit(rc);
}
}
static void UpdateTexture(SDL_Texture *texture)