GLEventListener.dispose() called by GLJPanel at resize?

Posted by Martin on
URL: https://forum.jogamp.org/GLEventListener-dispose-called-by-GLJPanel-at-resize-tp4008261.html

Hi,

My GLEventListener.dispose() method makes some cleanup assuming dispose() is called only when someone close the windows.

Unless I am wrong, it seems that in JOGL2 this method is called when a GLJPanel is resized. Thus the listener continue to live, but all its content get cleared.

What is the reason for calling dispose() without really destroying the listener?

Regards,

Martin