diff --git a/modules/juce_opengl/juce_opengl.cpp b/modules/juce_opengl/juce_opengl.cpp index 78b4f271d5..8ff4f75aa5 100644 --- a/modules/juce_opengl/juce_opengl.cpp +++ b/modules/juce_opengl/juce_opengl.cpp @@ -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 diff --git a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp index 34c6bd08a4..8b4752fa6d 100644 --- a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp +++ b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp @@ -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; }