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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user