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

Commit

Permalink
Added missing function prototype and changed its signature.
Browse files Browse the repository at this point in the history
Signature was changed to prevent a header for SDL_GLContext.
  • Loading branch information
philippwiesemann committed Aug 4, 2013
1 parent 8760185 commit 7d0bc96
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/android/SDL_android.c
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/core/android/SDL_android.h
Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion src/video/android/SDL_androidgl.c
Expand Up @@ -120,7 +120,7 @@ void
Android_GL_DeleteContext(_THIS, SDL_GLContext context)
{
if (context) {
Android_JNI_DeleteContext(context);
Android_JNI_DeleteContext();
}
}

Expand Down

0 comments on commit 7d0bc96

Please sign in to comment.