Login  Register

Re: JOGL OpenGL ES error in NetBeans

Posted by gouessej on Oct 26, 2015; 7:08pm
URL: https://forum.jogamp.org/JOGL-OpenGL-ES-error-in-NetBeans-tp4035582p4035600.html

I'm not sure that deleting a texture identifier in a finalizer is a good idea. You're not sure that the OpenGL context is current when you do it, I'm almost sure that it isn't on the thread that performs the garbage collection.

You should do this cleanup elsewhere and call those methods in GLEventListener.dispose() for example.
Julien Gouesse | Personal blog | Website