1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Workaround for problems on Android when the OS reuses a posix thread for the openGL thread.

This commit is contained in:
jules 2015-02-24 17:59:53 +00:00
parent 2022663c6b
commit 17863a45b6
2 changed files with 16 additions and 5 deletions

View file

@ -161,6 +161,7 @@ bool OpenGLHelpers::isContextActive()
JUCE_JNI_CALLBACK (GL_VIEW_CLASS_NAME, contextCreated, void, (JNIEnv* env, jobject view))
{
threadLocalJNIEnvHolder.removeCurrentThreadFromCache();
threadLocalJNIEnvHolder.getOrAttach();
if (OpenGLContext::NativeContext* const context = OpenGLContext::NativeContext::findContextFor (env, view))