[Mesa-dev] [PATCH 3/9] glsl: Let the builtin compiler process GLSL 1.40 shaders.
Eric Anholt
eric at anholt.net
Mon Mar 12 18:08:16 PDT 2012
This is required to put the new 1.40 builtins in place, since they
require new types.
---
src/glsl/main.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp
index e174224..d43bf1a 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;
--
1.7.9.1
More information about the mesa-dev
mailing list