diff options
author | Sven Gothel <[email protected]> | 2013-06-23 15:27:48 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-06-23 15:27:48 +0200 |
commit | 305cdc83f78a5ac63d5ca1e56538a1eade62bb23 (patch) | |
tree | 9df4b094f0bc650777b885d06e363f45704bbb62 /src/jogl/classes/jogamp | |
parent | 2d32b056c7b1b6b3d071d79fb4c2d4e9113b59d5 (diff) |
Fix Regression of 889ba9488ca07b59fdcc378642a2dc20676d69a3: GLDebugMessageHandler GL Profile criteria for availability is wrong
Diffstat (limited to 'src/jogl/classes/jogamp')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java b/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java index 4c7f414ca..10cdd512e 100644 --- a/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java +++ b/src/jogl/classes/jogamp/opengl/GLDebugMessageHandler.java @@ -160,7 +160,7 @@ public class GLDebugMessageHandler { } final ProcAddressTable procAddressTable = ctx.getGLProcAddressTable(); - if( ctx.isGL4() ) { + if( !ctx.isGLES1() && !ctx.isGLES2() ) { switch(extType) { case EXT_ARB: glDebugMessageCallbackProcAddress = getAddressFor(procAddressTable, "glDebugMessageCallbackARB"); @@ -170,6 +170,7 @@ public class GLDebugMessageHandler { break; } } else { + glDebugMessageCallbackProcAddress = 0; if(DEBUG) { System.err.println("Non desktop context not supported"); } |