Login  Register

Re: JOGL OpenGL ES error in NetBeans

Posted by gouessej on Oct 27, 2015; 12:40pm
URL: https://forum.jogamp.org/JOGL-OpenGL-ES-error-in-NetBeans-tp4035582p4035611.html

Object pooling should be avoided except in a very few particular cases since Java 1.4. I advise to have a clear way of identifying a resource to avoid loading the same texture several times. If you use direct NIO buffers to store the texture data, it's up to you to release their memory on the native heap, the garbage collector won't help.

Netix, please never store a GL instance, it can be invalidated at any time.
Julien Gouesse | Personal blog | Website