From: Brian Date: Fri, 13 Jul 2007 18:23:34 +0000 (-0600) Subject: comments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a47b5764c0d801fb9fc23ee80c698ff042006cb6;p=mesa.git comments --- diff --git a/src/mesa/pipe/softpipe/sp_quad_fs.c b/src/mesa/pipe/softpipe/sp_quad_fs.c index b4470ac94a5..7b1c90cba66 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); }