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

Commit

Permalink
* Take a global reference to the activity to prevent the reference be…
Browse files Browse the repository at this point in the history
…ing GCed
  • Loading branch information
Tim Angus committed Aug 26, 2011
1 parent a8e5330 commit 7f0917f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/android/SDL_android.cpp
Expand Up @@ -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,
"createGLContext","(II)Z");
Expand Down

0 comments on commit 7f0917f

Please sign in to comment.