From: Eric Anholt Date: Mon, 12 Mar 2012 22:51:54 +0000 (-0700) Subject: glsl: Let the builtin compiler process GLSL 1.40 shaders. X-Git-Tag: 062012170305~1111 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=497aab39f0dea48707f9414f318365839132ed75;p=profile%2Fivi%2Fmesa.git 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 --- 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;