From: Keith Whitwell Date: Tue, 29 Jan 2008 15:17:56 +0000 (+0000) Subject: gallium: weaken assert slightly X-Git-Tag: 062012170305~17580^2~496^2~298^2~16^2~384^2~171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b63f994ec7742da53b4c32ff7ee8219bbd72c2ef;p=profile%2Fivi%2Fmesa.git gallium: weaken assert slightly --- diff --git a/src/mesa/pipe/draw/draw_vf.c b/src/mesa/pipe/draw/draw_vf.c index 958d319..06b84b9 100644 --- a/src/mesa/pipe/draw/draw_vf.c +++ b/src/mesa/pipe/draw/draw_vf.c @@ -174,7 +174,7 @@ unsigned draw_vf_set_vertex_attributes( struct draw_vertex_fetch *vf, } else { - assert(vf->lookup[map[i].attrib] == 0); + assert(vf->lookup[map[i].attrib] == 0 || format == DRAW_EMIT_1F_CONST); vf->lookup[map[i].attrib] = &vf->attr[j]; vf->attr[j].attrib = map[i].attrib;