diff options
author | Brian Paul <[email protected]> | 2016-04-25 15:55:01 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-04-27 10:23:19 -0600 |
commit | 489df4a71aca99b2eebc62c02215a5860def944d (patch) | |
tree | c127ec4141388b0b7328f872f49125f4a32bec36 /src/gallium/auxiliary/draw/draw_vertex.h | |
parent | f93802c465b021592837c846d713146ddc1a8155 (diff) |
draw: s/Elements/ARRAY_SIZE/
Reviewed-by: Jose Fonseca <[email protected]>
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++; |