Fixes bug #1889, allows for GL Context deletion/recreation on Android

Thanks ny00!
This commit is contained in:
Gabriel Jacobo 2013-08-03 12:54:39 -03:00
parent a99dfca578
commit 2a6b235190
3 changed files with 41 additions and 14 deletions

View file

@ -119,7 +119,9 @@ Android_GL_SwapWindow(_THIS, SDL_Window * window)
void
Android_GL_DeleteContext(_THIS, SDL_GLContext context)
{
__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_DeleteContext\n");
if (context) {
Android_JNI_DeleteContext(context);
}
}
#endif /* SDL_VIDEO_DRIVER_ANDROID */