Browse Source

Fixed a couple of threading issues with openGL images on OSX.

tags/2021-05-28
jules 9 years ago
parent
commit
e3e812ecd6
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      modules/juce_opengl/opengl/juce_OpenGLContext.cpp

+ 6
- 3
modules/juce_opengl/opengl/juce_OpenGLContext.cpp View File

@@ -206,6 +206,8 @@ public:
}
context.swapBuffers();
OpenGLContext::deactivateCurrentContext();
return true;
}
@@ -389,7 +391,9 @@ public:
wait (-1);
}
context.makeActive();
shutdownOnThread();
OpenGLContext::deactivateCurrentContext();
}
#endif
@@ -434,11 +438,10 @@ public:
glDeleteVertexArrays (1, &vertexArrayObject);
#endif
cachedImageFrameBuffer.release();
nativeContext->shutdownOnRenderThread();
associatedObjectNames.clear();
associatedObjects.clear();
cachedImageFrameBuffer.release();
nativeContext->shutdownOnRenderThread();
}
//==============================================================================


Loading…
Cancel
Save