Hi,
when i destroy a Drawable, what happens to the context that i created with that surface?
EDIT: by the way, there is a way to create a context without a drawable and associate it later?
Hi,
when i destroy a Drawable, what happens to the context that i created with that surface?
EDIT: by the way, there is a way to create a context without a drawable and associate it later?
A GLAutoDrawable like the GLCanvas will destroy the one context automatically created for it when the drawable is destroyed. If you explicitly created other contexts for it, it’s your responsibility in general to try to destroy those contexts before destroying the drawable.
Not in the current incarnation of JOGL. We added this restriction for better robustness, portability and ease of use, and because it doesn’t seem to restrict the kinds of applications that can be built in practice.
Thanks