Added missing function prototype and changed its signature.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 04 Aug 2013 23:38:25 +0200
changeset 7575 930f21eaacd7
parent 7574 006f7a09ea1c
child 7576 26d8b2096c49
Added missing function prototype and changed its signature. Signature was changed to prevent a header for SDL_GLContext.
src/core/android/SDL_android.c
src/core/android/SDL_android.h
src/video/android/SDL_androidgl.c
--- a/src/core/android/SDL_android.c	Sun Aug 04 23:28:34 2013 +0200
+++ b/src/core/android/SDL_android.c	Sun Aug 04 23:38:25 2013 +0200
@@ -364,9 +364,9 @@
     return success ? SDL_TRUE : SDL_FALSE;
 }
 
-SDL_bool Android_JNI_DeleteContext(SDL_GLContext context) 
+SDL_bool Android_JNI_DeleteContext(void)
 {
-    /* There's only one context, so the parameter is ignored for now */
+    /* There's only one context, so no parameter for now */
     JNIEnv *env = Android_JNI_GetEnv();
     (*env)->CallStaticVoidMethod(env, mActivityClass, midDeleteGLContext);
     return SDL_TRUE;
--- a/src/core/android/SDL_android.h	Sun Aug 04 23:28:34 2013 +0200
+++ b/src/core/android/SDL_android.h	Sun Aug 04 23:38:25 2013 +0200
@@ -31,6 +31,7 @@
 
 /* Interface from the SDL library into the Android Java activity */
 extern SDL_bool Android_JNI_CreateContext(int majorVersion, int minorVersion, int red, int green, int blue, int alpha, int buffer, int depth, int stencil, int buffers, int samples);
+extern SDL_bool Android_JNI_DeleteContext(void);
 extern void Android_JNI_SwapWindow();
 extern void Android_JNI_SetActivityTitle(const char *title);
 extern SDL_bool Android_JNI_GetAccelerometerValues(float values[3]);
--- a/src/video/android/SDL_androidgl.c	Sun Aug 04 23:28:34 2013 +0200
+++ b/src/video/android/SDL_androidgl.c	Sun Aug 04 23:38:25 2013 +0200
@@ -120,7 +120,7 @@
 Android_GL_DeleteContext(_THIS, SDL_GLContext context)
 {
     if (context) {
-        Android_JNI_DeleteContext(context);
+        Android_JNI_DeleteContext();
     }
 }