summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl/FBObject.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-01-26 05:21:17 +0100
committerSven Gothel <[email protected]>2013-01-26 05:21:17 +0100
commit9505d48f1702e2ba8c9e72edcbb8fab5ad01bc56 (patch)
tree8feb8638c9bdabc90f25c49c43be055624e7d217 /src/jogl/classes/com/jogamp/opengl/FBObject.java
parentb738983638703bb721ee4c9820c8ef43e2252e73 (diff)
FBObject/GLFBODrawableImpl: Silence stderr if not in DEBUG mode relying on application handling verbosity and debug output
The following cases were dumping states on stderr: - FBOObject.isStatusValid() if false -> Only dumps if DEBUG - GLFBODrawableImpl.reset() if fboResetQuirk becomes true and 1st time in ClassLoader -> Only dumps if DEBUG
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/FBObject.java')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/FBObject.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/FBObject.java b/src/jogl/classes/com/jogamp/opengl/FBObject.java
index 17589aa0e..7d0fcfa38 100644
--- a/src/jogl/classes/com/jogamp/opengl/FBObject.java
+++ b/src/jogl/classes/com/jogamp/opengl/FBObject.java
@@ -1088,8 +1088,10 @@ public class FBObject {
case 0:
default:
- System.err.println("Framebuffer " + fbName + " is incomplete, status = " + toHexString(vStatus) +
- " : " + getStatusString(vStatus));
+ if(DEBUG) {
+ System.err.println("Framebuffer " + fbName + " is incomplete, status = " + toHexString(vStatus) +
+ " : " + getStatusString(vStatus));
+ }
return false;
}
}