Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed calling JNI method in a wrong way.
Browse files Browse the repository at this point in the history
Method is void and does not return bool.
  • Loading branch information
philippwiesemann committed Aug 3, 2013
1 parent bc75bc5 commit a76af0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/android/SDL_android.c
Expand Up @@ -368,7 +368,7 @@ SDL_bool Android_JNI_DeleteContext(SDL_GLContext context)
{
/* There's only one context, so the parameter is ignored for now */
JNIEnv *env = Android_JNI_GetEnv();
(*env)->CallStaticBooleanMethod(env, mActivityClass, midDeleteGLContext);
(*env)->CallStaticVoidMethod(env, mActivityClass, midDeleteGLContext);
}

void Android_JNI_SwapWindow()
Expand Down

0 comments on commit a76af0e

Please sign in to comment.