summaryrefslogtreecommitdiff
path: root/src/glsl/main.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-06-29 14:21:05 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-06-29 15:19:38 -0700
commit5e18b051c039564d1998818d08caf1bff3983630 (patch)
treef3e18487e1094a547d86615f8837e32f7f4a5913 /src/glsl/main.cpp
parentefc15f862b08a9f035c06a79bc43848cca740372 (diff)
glsl2: Pass MaxDrawBuffers from core Mesa into the GLSL compiler
Diffstat (limited to 'src/glsl/main.cpp')
-rw-r--r--src/glsl/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp
index 342cf98840..f1dab7b576 100644
--- a/src/glsl/main.cpp
+++ b/src/glsl/main.cpp
@@ -123,6 +123,8 @@ compile_shader(struct glsl_shader *shader)
state->loop_or_switch_nesting = NULL;
state->ARB_texture_rectangle_enable = true;
+ state->Const.MaxDrawBuffers = 2;
+
/* Create a new context for the preprocessor output. Ultimately, this
* should probably be the parser context, but there isn't one yet.
*/