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

* Take a global reference to the activity to prevent the reference be…

…ing GCed
  • Loading branch information
Tim Angus committed Aug 26, 2011
1 parent a8e5330 commit 7f0917f92a0d6799c7e0322a2804fee131f72ba2

File 1 of 1 in 7f0917f

@@ -96,7 +96,7 @@ extern "C" void SDL_Android_Init(JNIEnv* env, jclass cls)
__android_log_print(ANDROID_LOG_INFO, "SDL", "SDL_Android_Init()");

mEnv = env;
mActivityClass = cls;
mActivityClass = (jclass)env->NewGlobalRef(cls);

midCreateGLContext = mEnv->GetStaticMethodID(mActivityClass,

0 comments on commit 7f0917f

Please sign in to comment.