summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/draw
diff options
context:
space:
mode:
authorkeithw <keithw@keithw-laptop.(none)>2007-09-25 12:08:16 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2007-09-25 13:21:57 +0100
commit0940059f8b2dceb817e9b1778e78baf1ccc4c438 (patch)
tree30e90251a1b23561cb9e75d86f9d8464f631a6ed /src/mesa/pipe/draw
parentc0dd02219d47f45ce469abbef8044431f6d85d0a (diff)
test against -1 for front/back attrib
Diffstat (limited to 'src/mesa/pipe/draw')
-rw-r--r--src/mesa/pipe/draw/draw_twoside.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/pipe/draw/draw_twoside.c b/src/mesa/pipe/draw/draw_twoside.c
index 9547f2a67b..26d26e659e 100644
--- a/src/mesa/pipe/draw/draw_twoside.c
+++ b/src/mesa/pipe/draw/draw_twoside.c
@@ -78,12 +78,12 @@ static struct vertex_header *copy_bfc( struct twoside_stage *twoside,
struct vertex_header *tmp = dup_vert( &twoside->stage, v, idx );
const struct draw_context *draw = twoside->stage.draw;
- if (draw->attrib_front0) {
- assert(draw->attrib_back0);
+ if (draw->attrib_front0 != -1) {
+ assert(draw->attrib_back0 != -1);
copy_attrib(draw->attrib_front0, draw->attrib_back0, tmp);
}
- if (draw->attrib_front1) {
- assert(draw->attrib_back1);
+ if (draw->attrib_front1 != -1) {
+ assert(draw->attrib_back1 != -1);
copy_attrib(draw->attrib_front1, draw->attrib_back1, tmp);
}