Browse Source

GL fix for android

tags/2021-05-28
jules 12 years ago
parent
commit
4b2816b3f8
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      modules/juce_opengl/opengl/juce_OpenGLContext.cpp

+ 4
- 2
modules/juce_opengl/opengl/juce_OpenGLContext.cpp View File

@@ -316,8 +316,10 @@ public:
void initialiseOnThread()
{
jassert (associatedObjectNames.size() == 0);
jassert (! cachedImageFrameBuffer.isValid());
// On android, this can get called twice, so drop any previous state..
associatedObjectNames.clear();
associatedObjects.clear();
cachedImageFrameBuffer.release();
context.makeActive();
nativeContext->initialiseOnRenderThread (context);


Loading…
Cancel
Save