summaryrefslogtreecommitdiff
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-06-30 16:42:07 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-07-01 20:40:08 -0700
commit667f4e1940c4c4660e35dc9906672a476369660f (patch)
treecec67053730af9c360c3c1148fd55eb7bcb3d2fa /src/mesa/shader
parentefb6b24223e0bfd29959e131cd308b1e07ff20df (diff)
glsl2: Conditionally allow optional extensions to be enabled
The only optional extension currently supported by the compiler is GL_EXT_texture_array.
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/ir_to_mesa.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp
index 918004c79f..7c7e368d0d 100644
--- a/src/mesa/shader/ir_to_mesa.cpp
+++ b/src/mesa/shader/ir_to_mesa.cpp
@@ -1709,6 +1709,7 @@ _mesa_glsl_compile_shader(GLcontext *ctx, struct gl_shader *shader)
state->loop_or_switch_nesting = NULL;
state->ARB_texture_rectangle_enable = true;
+ state->extensions = &ctx->Extensions;
state->Const.MaxDrawBuffers = ctx->Const.MaxDrawBuffers;
state->Const.MaxTextureCoords = ctx->Const.MaxTextureCoordUnits;