I have two contexts running in their own individual threads and accessing the same framebuffer. If fails in an odd way for me. When I debug the code, the bindFrameBuffer call does not cause immediate trouble, but a subsequent call to any opengl function does. Currently the failing function if glGetError.
What I am trying to do is to render and swap in one thread and while it renders to the backbuffer, I am copying out pixels from the frontbuffer and sending them to another device.
The framebuffer I am trying to share this way is an extra framebuffer that I created myself (id=1) for offscreen rendering.
Is there a problem with this sharing?