summaryrefslogtreecommitdiffstats
path: root/src/glsl/main.cpp
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-03-12 15:51:54 -0700
committerEric Anholt <[email protected]>2012-03-15 16:24:49 -0700
commit497aab39f0dea48707f9414f318365839132ed75 (patch)
treed3091e4b11083c08792081336adc748a5877155d /src/glsl/main.cpp
parent177ccd246f8c2a411b9f97c45c9d7a4f6c9e7721 (diff)
glsl: Let the builtin compiler process GLSL 1.40 shaders.
This is required to put the new 1.40 builtins in place, since they require new types. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/main.cpp')
-rw-r--r--src/glsl/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp
index e174224712b..d43bf1a7463 100644
--- a/src/glsl/main.cpp
+++ b/src/glsl/main.cpp
@@ -35,10 +35,10 @@ initialize_context(struct gl_context *ctx, gl_api api)
{
initialize_context_to_defaults(ctx, api);
- /* GLSL 1.30 isn't fully supported, but we need to advertise 1.30 so that
- * the built-in functions for 1.30 can be built.
+ /* The standalone compiler needs to claim support for almost
+ * everything in order to compile the built-in functions.
*/
- ctx->Const.GLSLVersion = 130;
+ ctx->Const.GLSLVersion = 140;
ctx->Const.MaxClipPlanes = 8;
ctx->Const.MaxDrawBuffers = 2;