src/core/android/SDL_android.c
changeset 9880 3bbeb623181c
parent 9873 b0f121cfa074
child 9998 f67cf37e9cd4
     1.1 --- a/src/core/android/SDL_android.c	Fri Sep 25 15:17:20 2015 -0300
     1.2 +++ b/src/core/android/SDL_android.c	Sun Sep 27 20:12:47 2015 +0200
     1.3 @@ -71,7 +71,6 @@
     1.4  
     1.5  /* method signatures */
     1.6  static jmethodID midGetNativeSurface;
     1.7 -static jmethodID midFlipBuffers;
     1.8  static jmethodID midAudioInit;
     1.9  static jmethodID midAudioWriteShortBuffer;
    1.10  static jmethodID midAudioWriteByteBuffer;
    1.11 @@ -119,8 +118,6 @@
    1.12  
    1.13      midGetNativeSurface = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
    1.14                                  "getNativeSurface","()Landroid/view/Surface;");
    1.15 -    midFlipBuffers = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
    1.16 -                                "flipBuffers","()V");
    1.17      midAudioInit = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
    1.18                                  "audioInit", "(IZZI)I");
    1.19      midAudioWriteShortBuffer = (*mEnv)->GetStaticMethodID(mEnv, mActivityClass,
    1.20 @@ -134,7 +131,7 @@
    1.21  
    1.22      bHasNewData = SDL_FALSE;
    1.23  
    1.24 -    if(!midGetNativeSurface || !midFlipBuffers || !midAudioInit ||
    1.25 +    if (!midGetNativeSurface || !midAudioInit ||
    1.26         !midAudioWriteShortBuffer || !midAudioWriteByteBuffer || !midAudioQuit || !midPollInputDevices) {
    1.27          __android_log_print(ANDROID_LOG_WARN, "SDL", "SDL: Couldn't locate Java callbacks, check that they're named and typed correctly");
    1.28      }
    1.29 @@ -267,11 +264,6 @@
    1.30  
    1.31  }
    1.32  
    1.33 -JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_nativeFlipBuffers(JNIEnv* env, jclass jcls)
    1.34 -{
    1.35 -    SDL_GL_SwapWindow(Android_Window);
    1.36 -}
    1.37 -
    1.38  /* Keydown */
    1.39  JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeKeyDown(
    1.40                                      JNIEnv* env, jclass jcls, jint keycode)
    1.41 @@ -478,12 +470,6 @@
    1.42      return anw;
    1.43  }
    1.44  
    1.45 -void Android_JNI_SwapWindow(void)
    1.46 -{
    1.47 -    JNIEnv *mEnv = Android_JNI_GetEnv();
    1.48 -    (*mEnv)->CallStaticVoidMethod(mEnv, mActivityClass, midFlipBuffers);
    1.49 -}
    1.50 -
    1.51  void Android_JNI_SetActivityTitle(const char *title)
    1.52  {
    1.53      jmethodID mid;