Login  Register

Should I call glDeleteBuffers to destroy VBOs?

Posted by gouessej on Feb 23, 2012; 10:54pm
URL: https://forum.jogamp.org/Should-I-call-glDeleteBuffers-to-destroy-VBOs-tp3771162.html

Hi

Sometimes I would like to destroy a useless VBO. As far as I know, glDeleteBuffer frees the supplied identifier and destroys the data store, doesn't it? When using glBufferData, we can provide a direct NIO buffer (or null). If I destroy this direct NIO buffer after calling glDeleteBuffer, is there a risk of crash or something like that?
Julien Gouesse | Personal blog | Website