aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <sgothel@jausoft.com>2011-04-29 01:35:21 +0200
committerSven Gothel <sgothel@jausoft.com>2011-04-29 01:35:21 +0200
commit9ffd8a9687770a4cadb5df19ec206436f9a9b0e4 (patch)
treef31ab32f31d01514ae76a341528c4b92c55bfd0d /src/jogl/classes/jogamp/opengl
parent39a8ca392d7302831f5689979c4ce89145b732af (diff)
Fix GLDebugMessages synchronous setting 39a8ca392d7302831f5689979c4ce89145b732af, only set if ARB
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-rw-r--r--src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java b/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java
index 09be202dd..9ca573536 100644
--- a/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java
+++ b/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java
@@ -192,13 +192,15 @@ public class GLDebugMessageHandler {
}
}
private final void setSynchronousImpl() {
- if(synchronous) {
- ctx.getGL().glEnable(GL2GL3.GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
- } else {
- ctx.getGL().glDisable(GL2GL3.GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
- }
- if(DEBUG) {
- System.err.println("GLDebugMessageHandler: synchronous "+synchronous);
+ if(isExtensionARB()) {
+ if(synchronous) {
+ ctx.getGL().glEnable(GL2GL3.GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
+ } else {
+ ctx.getGL().glDisable(GL2GL3.GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
+ }
+ if(DEBUG) {
+ System.err.println("GLDebugMessageHandler: synchronous "+synchronous);
+ }
}
}