summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-01-31 14:52:27 -0800
committerIan Romanick <[email protected]>2011-01-31 15:32:56 -0800
commite5e34ab18eeaffa465094f6281dfe293b84376db (patch)
treeddddf1da3519be13b9d585d0e3a2ee8cb345ebdc /src/glsl
parentbf9850db2221384f1b92b034391f7149c74bf10e (diff)
glsl: Ensure that all GLSL versions are supported in the stand-alone compiler
NOTE: This is a candidate for the 7.9 and 7.10 branches
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp
index b4c7f966266..6f055293140 100644
--- a/src/glsl/main.cpp
+++ b/src/glsl/main.cpp
@@ -72,12 +72,18 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->API = api;
+ ctx->Extensions.ARB_ES2_compatibility = GL_TRUE;
ctx->Extensions.ARB_draw_buffers = GL_TRUE;
ctx->Extensions.ARB_draw_instanced = GL_TRUE;
ctx->Extensions.ARB_fragment_coord_conventions = GL_TRUE;
ctx->Extensions.EXT_texture_array = GL_TRUE;
ctx->Extensions.NV_texture_rectangle = GL_TRUE;
+ /* 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.
+ */
+ ctx->Const.GLSLVersion = 130;
+
/* 1.10 minimums. */
ctx->Const.MaxLights = 8;
ctx->Const.MaxClipPlanes = 8;