summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-01-29 15:17:56 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2008-01-29 15:17:56 +0000
commit1aaed3856878a39beb5aab0402d2adb8b277e812 (patch)
tree089bf0dbb0e8e76cbe4b2c367821d43990479e6c /src
parentc81848210e744650724a63fbf5a5795fa4e019c5 (diff)
gallium: weaken assert slightly
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/draw/draw_vf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/draw/draw_vf.c b/src/mesa/pipe/draw/draw_vf.c
index 958d31933b..06b84b93cc 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;