summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-04-14 20:54:13 -0600
committerBrian <[email protected]>2008-04-14 21:02:34 -0600
commitbbb042f0b809ebb754547397b8f22a5751c275da (patch)
treeff9b1e0b7284ebd05072148e4994b7028b972828 /src/mesa
parent118c2bc860037f084166d3406039d82198ddf3d6 (diff)
fix multi-draw buffer regression
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/swrast/s_span.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c
index 864f77a4174..656a90a99a9 100644
--- a/src/mesa/swrast/s_span.c
+++ b/src/mesa/swrast/s_span.c
@@ -1402,9 +1402,8 @@ _swrast_write_rgba_span( GLcontext *ctx, SWspan *span)
*/
{
const struct gl_fragment_program *fp = ctx->FragmentProgram._Current;
- const GLboolean multiFragOutputs
- = fp && fp->Base.InputsRead >= (1 << FRAG_RESULT_DATA0);
const GLuint numBuffers = fb->_NumColorDrawBuffers;
+ const GLboolean multiFragOutputs = numBuffers > 1;
GLuint buf;
for (buf = 0; buf < numBuffers; buf++) {