src/core/android/SDL_android.cpp
changeset 6189 b5a665fbaedc
parent 6186 e565ac981de6
child 6191 2c0d35b1af4e
     1.1 --- a/src/core/android/SDL_android.cpp	Sun Jan 08 02:23:37 2012 -0500
     1.2 +++ b/src/core/android/SDL_android.cpp	Fri Aug 26 13:23:40 2011 +0100
     1.3 @@ -96,7 +96,7 @@
     1.4      __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL_Android_Init()");
     1.5  
     1.6      mEnv = env;
     1.7 -    mActivityClass = cls;
     1.8 +    mActivityClass = (jclass)env->NewGlobalRef(cls);
     1.9  
    1.10      midCreateGLContext = mEnv->GetStaticMethodID(mActivityClass,
    1.11                                  "createGLContext","(II)Z");