From: keithw Date: Tue, 25 Sep 2007 11:08:16 +0000 (+0100) Subject: test against -1 for front/back attrib X-Git-Tag: 062012170305~17580^2~390^2~4038 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0940059f8b2dceb817e9b1778e78baf1ccc4c438;p=profile%2Fivi%2Fmesa.git test against -1 for front/back attrib --- diff --git a/src/mesa/pipe/draw/draw_twoside.c b/src/mesa/pipe/draw/draw_twoside.c index 9547f2a..26d26e6 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); }