Browse Source

Android GL fixes.

tags/2021-05-28
jules 11 years ago
parent
commit
dc24fdffb5
2 changed files with 6 additions and 1 deletions
  1. +1
    -1
      modules/juce_opengl/juce_opengl.cpp
  2. +5
    -0
      modules/juce_opengl/opengl/juce_OpenGLContext.cpp

+ 1
- 1
modules/juce_opengl/juce_opengl.cpp View File

@@ -96,7 +96,7 @@ void OpenGLExtensionFunctions::initialise()
#if JUCE_OPENGL_ES
#define JUCE_DECLARE_GL_FUNCTION(name, returnType, params, callparams) \
inline returnType OpenGLExtensionFunctions::name params { return ::name callparams; }
returnType OpenGLExtensionFunctions::name params { return ::name callparams; }
JUCE_GL_EXTENSION_FUNCTIONS (JUCE_DECLARE_GL_FUNCTION, JUCE_DECLARE_GL_FUNCTION)
#undef JUCE_DECLARE_GL_FUNCTION


+ 5
- 0
modules/juce_opengl/opengl/juce_OpenGLContext.cpp View File

@@ -414,7 +414,12 @@ void OpenGLContext::NativeContext::renderCallback()
isInsideGLCallback = true;
if (CachedImage* const c = CachedImage::get (component))
{
if (c->context.continuousRepaint)
c->context.triggerRepaint();
c->renderFrame();
}
isInsideGLCallback = false;
}


Loading…
Cancel
Save