Login  Register

Re: glDeleteFramebuffers hangs in dispose!

Posted by Worker on Jun 03, 2011; 6:37pm
URL: https://forum.jogamp.org/glDeleteFramebuffers-hangs-in-dispose-tp3011583p3020710.html

Hi

Make a list from that what you have initiallized.

first, release your scene from drawing
e.g. glMyDrawable.removeGLEventListener(MySceneRenderer);
then release your scene resources

e.g lists with : gl.glDeleteLists(glName,0);
e.g. buffers with : gl.glDeleteBuffers(vboIds.length, vboIds, 0);
e.g textures with : gl.glDeleteTextures( myTextures.length, myTextures, 0 );

then in an separate thread if you want,

- stop the animator and
- release all your Listener

If you has worked in fullscreen mode, set back the screen
to the old mode.

That must work

or you driver has a problem:-)