From aa789425b0681b8cf5d4d3474e8fc62792882388 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 6 Nov 2012 17:06:06 +0100 Subject: GLFBODrawableImpl: Following suit w/ commit b83b068c0f426f24a58e2bd9f52de9ebd0c7876d, sync GL command stream before FBO reconfig Even though we currently have no bug experienced on this, it seems to be a good idea for highly concurrently GL driver implementations. --- src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl/classes/jogamp') diff --git a/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java b/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java index b5b723f7c..7a468a41e 100644 --- a/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java @@ -11,7 +11,6 @@ import javax.media.opengl.GLContext; import javax.media.opengl.GLException; import javax.media.opengl.GLFBODrawable; -import com.jogamp.common.os.Platform; import com.jogamp.common.util.VersionUtil; import com.jogamp.nativewindow.MutableGraphicsConfiguration; import com.jogamp.opengl.FBObject; @@ -222,6 +221,7 @@ public class GLFBODrawableImpl extends GLDrawableImpl implements GLFBODrawable { Throwable tFBO = null; Throwable tGL = null; ourContext.makeCurrent(); + gl.glFinish(); // sync GL command stream fboBound = false; // clear bound-flag immediatly, caused by contextMadeCurrent(..) - otherwise we would swap @ release try { final int maxSamples = gl.getMaxRenderbufferSamples(); -- cgit v1.2.3