Shut down the C application properly on quit instead of crashing in the most horrible way possible
This commit is contained in:
parent
d42b7d3970
commit
27d80262c2
3 changed files with 40 additions and 13 deletions
|
@ -348,7 +348,7 @@ int drawGLScene( GLvoid )
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
rotation++;
|
||||
|
||||
return( TRUE );
|
||||
}
|
||||
|
@ -463,6 +463,7 @@ int SDL_main( int argc, char **argv )
|
|||
case SDL_QUIT:
|
||||
/* handle quit requests */
|
||||
done = TRUE;
|
||||
__android_log_print(ANDROID_LOG_INFO, "SDL","App is shutting down\n");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue