gallium: weaken assert slightly
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 29 Jan 2008 15:17:56 +0000 (15:17 +0000)
committerBen Skeggs <skeggsb@gmail.com>
Fri, 15 Feb 2008 02:50:25 +0000 (13:50 +1100)
src/mesa/pipe/draw/draw_vf.c

index 958d319..06b84b9 100644 (file)
@@ -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;