glsl2: Conditionally allow optional extensions to be enabled

The only optional extension currently supported by the compiler is
GL_EXT_texture_array.
This commit is contained in:
Ian Romanick
2010-06-30 16:42:07 -07:00
parent efb6b24223
commit 667f4e1940
4 changed files with 11 additions and 0 deletions
+1
View File
@@ -129,6 +129,7 @@ compile_shader(struct gl_shader *shader)
state->ARB_texture_rectangle_enable = true;
memset(&ext, 0, sizeof(ext));
state->extensions = &ext;
state->Const.MaxDrawBuffers = 2;
state->Const.MaxTextureCoords = 4;