aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl/JoglVersion.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-28 03:33:00 +0100
committerSven Gothel <[email protected]>2010-11-28 03:33:00 +0100
commit0c9eb947a2ffabba2c10799f6ea50756a2749702 (patch)
treed8f68006af6d5bbec7ae2eddb7b326019daedb30 /src/jogl/classes/com/jogamp/opengl/JoglVersion.java
parentaaa2b1df6ba9bd30f251ddada32ba0d56b12aa81 (diff)
minor cleanup
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/JoglVersion.java')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/JoglVersion.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java
index aa0586039..b096f84ae 100644
--- a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java
+++ b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java
@@ -71,6 +71,7 @@ public class JoglVersion extends JogampVersion {
if(null==sb) {
sb = new StringBuffer();
}
+ GLContext ctx = gl.getContext();
sb.append(VersionUtil.SEPERATOR).append(Platform.getNewline());
sb.append("Default Desktop ").append(GLProfile.getDefaultDesktopDevice().getConnection()).append(": ").append(GLProfile.glAvailabilityToString(GLProfile.getDefaultDesktopDevice()));
@@ -91,7 +92,11 @@ public class JoglVersion extends JogampVersion {
sb.append(Platform.getNewline());
sb.append("GL_EXTENSIONS ");
sb.append(Platform.getNewline());
- sb.append(" ").append(gl.glGetString(gl.GL_EXTENSIONS));
+ sb.append(" ").append(ctx.getGLExtensionsString());
+ sb.append(Platform.getNewline());
+ sb.append("GLX_EXTENSIONS ");
+ sb.append(Platform.getNewline());
+ sb.append(" ").append(ctx.getPlatformExtensionsString());
sb.append(Platform.getNewline());
sb.append(VersionUtil.SEPERATOR);