Login  Register

Re: Make changes to rendering pipeline on the fly problem

Posted by EvilMax on Nov 15, 2014; 7:22pm
URL: https://forum.jogamp.org/Make-changes-to-rendering-pipeline-on-the-fly-problem-tp4033273p4033554.html

Issue is solved, all is just ok.  

I'll post example here, because it would help me if it'd be here. updateLut here is a method that makes changes to GPU data used in rendering.  canvas.invoke is being called from EDT.

canvas.invoke(false, new GLRunnable() {
			
			@Override
			public boolean run(GLAutoDrawable drawable) {
				GL3 gl = drawable.getGL().getGL3();
				updateLut(gl);
				return false;
			}
		} );