aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl/FBObject.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-08-17 17:11:03 +0200
committerSven Gothel <[email protected]>2012-08-17 17:11:03 +0200
commitfe78d5095ef98215ce6c73d8912dfa19ae708bd0 (patch)
treee4d191894d42909e3fe79205a3b24d2ee3e91e6b /src/jogl/classes/com/jogamp/opengl/FBObject.java
parentda697607fce1e6d2b0c65fcc37030c88981b76ec (diff)
Robostness FBObject / GLReadBufferUtil: Ignore pre-existing GL errors - remove GL error checking in FBObject bind/unbind.
- User GL code caused errors shall not fail impl. - FBObject bind/unbind GL error checking is almost useless due to it's simple code, would only catch user GL code errors, which should be ignored here. - MultisampleDemoES2: Only enable GL_MULTISAMPLE if available, i.e. validate passed multisample flag
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/FBObject.java')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/FBObject.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/FBObject.java b/src/jogl/classes/com/jogamp/opengl/FBObject.java
index 663b4fb9d..8a6495e6b 100644
--- a/src/jogl/classes/com/jogamp/opengl/FBObject.java
+++ b/src/jogl/classes/com/jogamp/opengl/FBObject.java
@@ -725,7 +725,7 @@ public class FBObject {
glerr = gl.glGetError();
if(DEBUG && GL.GL_NO_ERROR != glerr) {
- System.err.println("FBObject.init-preexisting.1 GL Error 0x"+Integer.toHexString(glerr));
+ System.err.println("Info: FBObject.init: pre-existing GL error 0x"+Integer.toHexString(glerr));
}
this.width = width;
@@ -1741,7 +1741,6 @@ public class FBObject {
gl.glBindFramebuffer(GL.GL_FRAMEBUFFER, getWriteFramebuffer());
}
- checkNoError(null, gl.glGetError(), "FBObject post-bind"); // throws GLException if error
bound = true;
samplesSinkDirty = true;
}
@@ -1766,7 +1765,6 @@ public class FBObject {
} else {
gl.glBindFramebuffer(GL.GL_FRAMEBUFFER, 0); // default draw buffer
}
- checkNoError(null, gl.glGetError(), "FBObject post-unbind"); // throws GLException if error
bound = false;
}
}