Fixed calling JNI method in a wrong way.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 03 Aug 2013 23:36:07 +0200
changeset 7568 d50ca5920421
parent 7567 52da75545aaa
child 7569 9fd3f4b23223
Fixed calling JNI method in a wrong way. Method is void and does not return bool.
src/core/android/SDL_android.c
--- a/src/core/android/SDL_android.c	Sat Aug 03 12:54:39 2013 -0300
+++ b/src/core/android/SDL_android.c	Sat Aug 03 23:36:07 2013 +0200
@@ -368,7 +368,7 @@
 {
     /* 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()