Shut down the C application properly on quit instead of crashing in the most horrible way possible

This commit is contained in:
Paul Hunkin 2010-07-27 10:20:22 +02:00
parent d42b7d3970
commit 27d80262c2
3 changed files with 40 additions and 13 deletions

View file

@ -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;