glsl2: Pass MaxDrawBuffers from core Mesa into the GLSL compiler

This commit is contained in:
Ian Romanick
2010-06-29 14:21:05 -07:00
parent efc15f862b
commit 5e18b051c0
4 changed files with 35 additions and 24 deletions

View File

@@ -1526,6 +1526,8 @@ _mesa_get_glsl_shader(GLcontext *ctx, void *mem_ctx, struct gl_shader *sh)
state->loop_or_switch_nesting = NULL;
state->ARB_texture_rectangle_enable = true;
state->Const.MaxDrawBuffers = ctx->Const.MaxDrawBuffers;
/* Create a new context for the preprocessor output. Ultimately, this
* should probably be the parser context, but there isn't one yet.
*/