How to delete direct Buffers?
Posted by Vasilij on Nov 25, 2014; 12:40pm
URL: https://forum.jogamp.org/How-to-delete-direct-Buffers-tp4033631.html
Hello,
in jogl es2 i use direct java.nio.FloatBuffer for vertices and direct java.nio.ByteBuffer for Bytedata of Texture.
If i don't need some Texture anymore, i delete it in this way:
gl.glDeleteTextures( 1, new int[] { textureId }, 0 );
gl.glDeleteBuffers(1, new int[] { vboId }, 0);
and Buffers with sun.misc.Cleaner
Delete of ByteBuffer is sucessful, but FloatBuffer is still here.
How can i delete FloatBuffer?