summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-07-24 14:27:11 -0600
committerBrian Paul <[email protected]>2008-07-24 15:11:11 -0600
commit51bfb6aa992043f780a1641e6d53282374526c66 (patch)
tree9020a3d486c73b59c981800b7a77d4d25895adf5 /progs
parent9a4be9785f932bedf727fbf88244ac1b158b09a5 (diff)
query/print GLSL version string
Diffstat (limited to 'progs')
-rw-r--r--progs/xdemos/glxinfo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/xdemos/glxinfo.c b/progs/xdemos/glxinfo.c
index 35b6ed16b09..6cf127afa2f 100644
--- a/progs/xdemos/glxinfo.c
+++ b/progs/xdemos/glxinfo.c
@@ -523,6 +523,13 @@ print_screen_info(Display *dpy, int scrnum, Bool allowDirect, GLboolean limits)
printf("OpenGL vendor string: %s\n", glVendor);
printf("OpenGL renderer string: %s\n", glRenderer);
printf("OpenGL version string: %s\n", glVersion);
+#ifdef GL_VERSION_2_0
+ if (glVersion[0] >= '2' && glVersion[1] == '.') {
+ char *v = (char *) glGetString(GL_SHADING_LANGUAGE_VERSION);
+ printf("OpenGL shading language version string: %s\n", v);
+ }
+#endif
+
printf("OpenGL extensions:\n");
print_extension_list(glExtensions);
if (limits)