projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
118c2bc
)
fix multi-draw buffer regression
author
Brian
<brian.paul@tungstengraphics.com>
Tue, 15 Apr 2008 02:54:13 +0000
(20:54 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Tue, 15 Apr 2008 03:02:34 +0000
(21:02 -0600)
src/mesa/swrast/s_span.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_span.c
b/src/mesa/swrast/s_span.c
index 864f77a4174a940c4391e9eb29a96aef4bd1d7da..656a90a99a9ace4a5cd935594aefec1ca8e90b1b 100644
(file)
--- 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++) {