Re: JOGL OpenGL ES error in NetBeans
Posted by Netix on Oct 26, 2015; 7:02pm
URL: https://forum.jogamp.org/JOGL-OpenGL-ES-error-in-NetBeans-tp4035582p4035599.html
Now, when i am looking at log, maybe there something wrong with my finalize method in IGLTexture class. I am coding in JAVA after i have coded in c++ for years, so i am used to work with destruktors. In JAVA i read something about finalize() method, that its working as destruktors in c++. So my finalize method looks like:
protected void finalize()
{
gl.glDeleteTextures(1, _textureId, 0);
release();
}