Login  Register

Re: GlEventListener initialization

Posted by John No on Jun 16, 2014; 3:20pm
URL: https://forum.jogamp.org/GlEventListener-initialization-tp4032434p4032440.html

I found a solution by playing around with the testcase.
Stopping and starting the animator in the dispose and init methods seems to fix the issue.

public void init(GLAutoDrawable drawable) {
		System.out.println("init");
		animator.start();
	}

	public void dispose(GLAutoDrawable drawable) {
		System.out.println("dispose");
		animator.stop();
	}

Is that the right way to do it? Or should the original version have worked?

Cheers,
John