Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added missing function prototype and changed its signature.

Signature was changed to prevent a header for SDL_GLContext.
  • Loading branch information
philippwiesemann committed Aug 4, 2013
1 parent 8760185 commit 7d0bc9683cd32f4749a6df45ccff4a9eb9f1f330
Showing with 4 additions and 3 deletions.
  1. +2 −2 src/core/android/SDL_android.c
  2. +1 −0 src/core/android/SDL_android.h
  3. +1 −1 src/video/android/SDL_androidgl.c
@@ -364,9 +364,9 @@ SDL_bool Android_JNI_CreateContext(int majorVersion, int minorVersion,
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;
@@ -31,6 +31,7 @@ extern "C" {

/* 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]);
@@ -120,7 +120,7 @@ void
Android_GL_DeleteContext(_THIS, SDL_GLContext context)
{
if (context) {
Android_JNI_DeleteContext(context);
Android_JNI_DeleteContext();
}
}

0 comments on commit 7d0bc96

Please sign in to comment.