When I use OpenGLContext::copyTexture and any paint() methods in the same app I get a crash. I can reproduce this (using latest JUCE) when running on OSX and iOS - I haven't tested yet on other platforms.
* Set up new GUI project and set MainComponent to be an OpenGLRenderer and attach a context.
* Add a child component that uses the Graphics methods in it's paint (i.e stroking a path).
* Create OpenGLTextures when context is created
* Copy OpenGLTexture in the draw method
I then get a crash in juce_OpenGLGraphicsContext line 1249 (glDrawElements).
I've written some of my own OpenGL to test what the cause is and found that calling
will cause the crash