summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/getstring.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-07-26 15:54:25 -0700
committerKenneth Graunke <kenneth@whitecape.org>2012-07-31 10:52:54 -0700
commitd84b3a5a3c855e3f2ffc83bbbda9d615b04c0ad2 (patch)
tree9212449dc2fd2370e2cdcdbf6fcf641d53817e04 /src/mesa/main/getstring.c
parent591594ea1e5e9e5865b10b786509b9c3cec042a7 (diff)
downloadexternal_mesa3d-d84b3a5a3c855e3f2ffc83bbbda9d615b04c0ad2.zip
external_mesa3d-d84b3a5a3c855e3f2ffc83bbbda9d615b04c0ad2.tar.gz
external_mesa3d-d84b3a5a3c855e3f2ffc83bbbda9d615b04c0ad2.tar.bz2
mesa: Support glGetString(GL_SHADING_LANGUAGE_VERSION) for >= 1.40.
This will need to get refactored when we add support for core profiles or forward-compatible contexts, but we may as well have it in the meantime. This allows us to override the GLSL version and experiment. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/main/getstring.c')
-rw-r--r--src/mesa/main/getstring.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c
index c6f400a..1734fb3 100644
--- a/src/mesa/main/getstring.c
+++ b/src/mesa/main/getstring.c
@@ -56,6 +56,16 @@ shading_language_version(struct gl_context *ctx)
return (const GLubyte *) "1.30";
case 140:
return (const GLubyte *) "1.40";
+ case 150:
+ return (const GLubyte *) "1.50";
+ case 330:
+ return (const GLubyte *) "3.30";
+ case 400:
+ return (const GLubyte *) "4.00";
+ case 410:
+ return (const GLubyte *) "4.10";
+ case 420:
+ return (const GLubyte *) "4.20";
default:
_mesa_problem(ctx,
"Invalid GLSL version in shading_language_version()");