diff options
author | Brian Paul <[email protected]> | 2016-04-28 11:42:58 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-05-03 15:40:48 -0600 |
commit | 8842be1132ccbcf45ebf65bfd048e20d0b7fff92 (patch) | |
tree | a4a4e16ec3f72911bd202766cce39b561c020a58 /src/gallium | |
parent | 7f641916bfca15f5e34134ae078d4ccad2edae59 (diff) |
rbug: s/Elements/ARRAY_SIZE/
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/rbug/rbug_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/rbug/rbug_context.c b/src/gallium/drivers/rbug/rbug_context.c index 38dee7434cb..54564c1a4be 100644 --- a/src/gallium/drivers/rbug/rbug_context.c +++ b/src/gallium/drivers/rbug/rbug_context.c @@ -87,7 +87,7 @@ rbug_draw_block_locked(struct rbug_context *rb_pipe, int flag) if (rb_pipe->draw_rule.surf == rb_pipe->curr.cbufs[k]) block = TRUE; if (rb_pipe->draw_rule.texture) { - for (sh = 0; sh < Elements(rb_pipe->curr.num_views); sh++) { + for (sh = 0; sh < ARRAY_SIZE(rb_pipe->curr.num_views); sh++) { for (k = 0; k < rb_pipe->curr.num_views[sh]; k++) { if (rb_pipe->draw_rule.texture == rb_pipe->curr.texs[sh][k]) { block = TRUE; |