I’m running my application under a GL debugger, and I’ve resource leaks. The resource leaks are due to the fact that I’m using a thread to render OpenGL stuff.
Unfortunately I must send huge textures to the card, and these leaks accumulate each time I start the component.
I’m creating a context in that thread, but I can’t delete it.
So when the OpenGLComponent destructor is called on the message thread, it’s calling deleteContext which is not functionnal since the context was only valid for the other (finished) thread.
So, I think we need a way to delete a context in the same thread as it was created.
This can be done easily if OpenGLComponent::deleteContext was public (or at worst protected, but this would imply useless subclassing).
What do you think ?