I am writing a program that needs to render some OpenGL graphics so i wrote a class that inherits from
This class contains a pointer to another object that manages OpenGL objects and therefore needs a valid
OpenGLContext in order to work. To this end it contains a
I setup my GL objects from the
initialise() method inherited from
OpenGLAppComponent as advised by the documentation.
Just before doing so, i simply set the context in the object that needs it with the context in the
Everything seem to be ok (valid context) just before the method that should initialize all the GL object is called.
Here are some screens from the debugger:
Before entering the
initGLObjects() method, the context of both the component and the other class are OK.
But when i step into it, it suddenly gets messed up.
Then the following
init() functions use the context, i get a segfault there
What happened ?
What did i do wrong ?
Thanks for the help,