summaryrefslogtreecommitdiff
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-07-13 12:23:34 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-07-13 12:23:34 -0600
commita47b5764c0d801fb9fc23ee80c698ff042006cb6 (patch)
tree6c1f7b7ed5a4b1fd671d0006ca6b3b3f0cdb9b7e /src/mesa/pipe
parenta6eccf9e4f4d4815e004db9c8c61c5cdac63bbfd (diff)
comments
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_fs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_fs.c b/src/mesa/pipe/softpipe/sp_quad_fs.c
index b4470ac94a..7b1c90cba6 100644
--- a/src/mesa/pipe/softpipe/sp_quad_fs.c
+++ b/src/mesa/pipe/softpipe/sp_quad_fs.c
@@ -39,7 +39,7 @@
#include "sp_quad.h"
struct exec_machine {
- const struct setup_coefficient *coef;
+ const struct setup_coefficient *coef; /**< will point to quad->coef */
GLfloat attr[FRAG_ATTRIB_MAX][4][QUAD_SIZE];
};
@@ -200,7 +200,9 @@ shade_quad( struct quad_stage *qs, struct quad_header *quad )
}
#endif
- qs->next->run(qs->next, quad);
+ /* shader may cull fragments */
+ if (quad->mask)
+ qs->next->run(qs->next, quad);
}