Disposes the given
GLEventListener via
GLEventListener#dispose(GLAutoDrawable)if it has been initialized and added to this queue.
If remove
is true
, the
GLEventListener is removed from this drawable queue before disposal,
otherwise marked uninitialized.
If an
GLAnimatorControl is being attached and the current thread is different
than
GLAnimatorControl#getThread(), it is paused during the operation.
Note that this is an expensive operation, since
GLEventListener#dispose(GLAutoDrawable)is decorated by
GLContext#makeCurrent() and
GLContext#release().
Use
#removeGLEventListener(GLEventListener) instead
if you just want to remove the
GLEventListener and don't care about the disposal of the it's (OpenGL) resources.
Also note that this is done from within a particular drawable's
GLEventListener handler (reshape, display, etc.), that it is not
guaranteed that all other listeners will be evaluated properly
during this update cycle.