summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java
diff options
context:
space:
mode:
authorRami Santina <[email protected]>2011-09-30 22:37:24 +0300
committerRami Santina <[email protected]>2011-09-30 22:37:24 +0300
commit274cabe94fef1fbea3d77407d7ee532235376022 (patch)
treee5bd348aae68c59344c70ce65ab6641f018877de /src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java
parent18817fe6d3b85fcb672a2dd244f3fad3fdab2aa3 (diff)
parentefb2e94cfafc3eab39f729f2445006fc4e86b986 (diff)
Merge branch 'android-tegra-playground' of git://github.com/sgothel/jogl into android-tegra-playground
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java b/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java
index 9ca573536..8ca0c016d 100644
--- a/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java
+++ b/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java
@@ -99,9 +99,14 @@ public class GLDebugMessageHandler {
}
public void init(boolean enable) {
+ if(DEBUG) {
+ System.err.println("GLDebugMessageHandler.init("+enable+")");
+ }
init();
if(isAvailable()) {
enableImpl(enable);
+ } else if(DEBUG) {
+ System.err.println("GLDebugMessageHandler.init("+enable+") .. n/a");
}
}
@@ -111,6 +116,13 @@ public class GLDebugMessageHandler {
return;
}
+ if( !ctx.isGLDebugEnabled() ) {
+ if(DEBUG) {
+ System.err.println("GLDebugMessageHandler: GL DEBUG not set in ARB ctx options: "+ctx.getGLVersion());
+ }
+ return;
+ }
+
if( ctx.isExtensionAvailable(GL_ARB_debug_output) ) {
extName = GL_ARB_debug_output;
extType = EXT_ARB;
@@ -124,7 +136,7 @@ public class GLDebugMessageHandler {
if(0 == extType) {
if(DEBUG) {
- System.err.println("GLDebugMessageHandler: No extension available!");
+ System.err.println("GLDebugMessageHandler: No extension available! "+ctx.getGLVersion());
}
return;
}