From a4c8271adc1932903a34e34bee24ff274ed1a81e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 5 Apr 2012 02:47:56 +0200 Subject: JoglVersion: Dump GLSL version if GLSL is available. --- src/jogl/classes/com/jogamp/opengl/JoglVersion.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/com') diff --git a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java index 7bf299383..c8e5d212b 100644 --- a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java +++ b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java @@ -139,6 +139,11 @@ public class JoglVersion extends JogampVersion { sb.append(Platform.getNewline()); sb.append("GL_VERSION ").append(gl.glGetString(GL.GL_VERSION)); sb.append(Platform.getNewline()); + sb.append("GLSL ").append(gl.hasGLSL()).append(", has-compiler: ").append(gl.isFunctionAvailable("glCompileShader")); + if(gl.hasGLSL()) { + sb.append(", version: ").append(gl.glGetString(GL2ES2.GL_SHADING_LANGUAGE_VERSION)); + } + sb.append(Platform.getNewline()); sb.append("GL_EXTENSIONS ").append(ctx.getGLExtensionCount()); sb.append(Platform.getNewline()); sb.append(" ").append(ctx.getGLExtensionsString()); @@ -147,8 +152,6 @@ public class JoglVersion extends JogampVersion { sb.append(Platform.getNewline()); sb.append(" ").append(ctx.getPlatformExtensionsString()); sb.append(Platform.getNewline()); - sb.append("GLSL ").append(gl.hasGLSL()).append(", shader-compiler: ").append(gl.isFunctionAvailable("glCompileShader")); - sb.append(Platform.getNewline()); sb.append(VersionUtil.SEPERATOR); return sb; -- cgit v1.2.3