diff options
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vertex.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_vertex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vertex.h b/src/gallium/auxiliary/draw/draw_vertex.h index c7b1afe5dde..d834869e3bd 100644 --- a/src/gallium/auxiliary/draw/draw_vertex.h +++ b/src/gallium/auxiliary/draw/draw_vertex.h @@ -122,7 +122,7 @@ draw_emit_vertex_attr(struct vertex_info *vinfo, src_index = DRAW_ATTR_NONEXIST; } - assert(n < Elements(vinfo->attrib)); + assert(n < ARRAY_SIZE(vinfo->attrib)); vinfo->attrib[n].emit = emit; vinfo->attrib[n].src_index = src_index; vinfo->num_attribs++; |