Hi,
I have a problem with two OpenGL-views. Unfortunately the whole application is quite complex, so I strip down the information I give here, to a minimum which can be understood. I know, this also results in a loss of lot of potential useful information, but describing everything which may be involved is way too complex.
So my problem: I have two OpenGL-views which each make use of an own context and an own window they appear in. This is what I’m doing:
- open the first view → the view works fine and displays everything as expected
- open the second view in a separate dialogue and with an own context → this view also works fine
- close the second view and release all related sources (both views do not share any global, common data, at least within the scope of my code, so the second view should not release anything the first one uses)
→ now the first view no longer works, it displays the old data properly, but no more changes are possible. The point is, as soon as the second view was closed, all calls to glCreateProgram() return 0. When this happens, glGetError() returns an error code 0x502.
So my question: what exactly can cause glCreateProgram() - which worked until the second view was used - to fail with GL_INVALID_OPERATION?
Thanks!