|
|
|
@@ -162,25 +162,20 @@ JUCE_JNI_CALLBACK (GL_VIEW_CLASS_NAME, contextCreated, void, (JNIEnv* env, jobje |
|
|
|
{
|
|
|
|
threadLocalJNIEnvHolder.getOrAttach();
|
|
|
|
|
|
|
|
OpenGLContext::NativeContext* const context = OpenGLContext::NativeContext::findContextFor (env, view);
|
|
|
|
jassert (context != nullptr);
|
|
|
|
|
|
|
|
if (context != nullptr)
|
|
|
|
if (OpenGLContext::NativeContext* const context = OpenGLContext::NativeContext::findContextFor (env, view))
|
|
|
|
context->contextCreatedCallback();
|
|
|
|
else
|
|
|
|
jassertfalse;
|
|
|
|
}
|
|
|
|
|
|
|
|
JUCE_JNI_CALLBACK (GL_VIEW_CLASS_NAME, contextChangedSize, void, (JNIEnv* env, jobject view))
|
|
|
|
{
|
|
|
|
OpenGLContext::NativeContext* const context = OpenGLContext::NativeContext::findContextFor (env, view);
|
|
|
|
|
|
|
|
if (context != nullptr)
|
|
|
|
if (OpenGLContext::NativeContext* const context = OpenGLContext::NativeContext::findContextFor (env, view))
|
|
|
|
context->contextChangedSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
JUCE_JNI_CALLBACK (GL_VIEW_CLASS_NAME, render, void, (JNIEnv* env, jobject view))
|
|
|
|
{
|
|
|
|
OpenGLContext::NativeContext* const context = OpenGLContext::NativeContext::findContextFor (env, view);
|
|
|
|
|
|
|
|
if (context != nullptr)
|
|
|
|
if (OpenGLContext::NativeContext* const context = OpenGLContext::NativeContext::findContextFor (env, view))
|
|
|
|
context->renderCallback();
|
|
|
|
}
|