diff options
author | Sven Gothel <[email protected]> | 2012-10-13 08:24:02 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-13 08:24:02 +0200 |
commit | b98bb2d14d5d5ff96fd5c22f4f30bc685d86757b (patch) | |
tree | c0fb74cfce6e51f2f7893dae6ed69b059ee2ab16 /src/jogl/classes/jogamp/opengl | |
parent | 61bb64aea9d8967f5360ba42fc9ec7a24b79683b (diff) |
FBO ResetQuirk: Dump only brief information (OS, GL, JOGL sha1), the latter becomes public method to JoglVersion
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java b/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java index a516060fb..b5b723f7c 100644 --- a/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLFBODrawableImpl.java @@ -11,6 +11,7 @@ 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; @@ -171,11 +172,16 @@ public class GLFBODrawableImpl extends GLDrawableImpl implements GLFBODrawable { } if(!resetQuirkInfoDumped) { // dump info only once resetQuirkInfoDumped = true; - System.err.println("GLFBODrawable: Reset failed: "+e.getMessage()); - System.err.println("GLFBODrawable: Enabling FBOResetQuirk, due to previous GLException. "+this.toString()); - System.err.println(VersionUtil.getPlatformInfo()); - System.err.println(JoglVersion.getInstance()); - System.err.println(JoglVersion.getGLInfo(gl, null)); + System.err.println("GLFBODrawable: FBO Reset failed: "+e.getMessage()); + System.err.println("GLFBODrawable: Enabling FBOResetQuirk, due to GL driver bug."); + final JoglVersion joglVersion = JoglVersion.getInstance(); + if(DEBUG) { + System.err.println(VersionUtil.getPlatformInfo()); + System.err.println(joglVersion.toString()); + System.err.println(JoglVersion.getGLInfo(gl, null)); + } else { + System.err.println(joglVersion.getBriefOSGLBuildInfo(gl, null)); + } } fboResetQuirk = true; // 'fallthrough' intended |