From 9ffd8a9687770a4cadb5df19ec206436f9a9b0e4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 29 Apr 2011 01:35:21 +0200 Subject: Fix GLDebugMessages synchronous setting 39a8ca392d7302831f5689979c4ce89145b732af, only set if ARB --- .../classes/jogamp/opengl/GLDebugMessageHandler.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/jogl') 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); + } } } -- cgit v1.2.3