diff options
author | Corbin Simpson <[email protected]> | 2009-11-07 13:37:07 -0800 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2009-11-07 13:37:07 -0800 |
commit | 9f49db6f843885620a52a06721d5972afb29f21a (patch) | |
tree | 33e2807108429a44db9113ff9fd9bec4105d357d /src/gallium/drivers/r300/r300_render.c | |
parent | fa6916cfef6a75eacdbf927a02f64a5a37c3b0d9 (diff) |
r300g: Minor code cleanup to avoid confusion.
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_render.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c index 0df9a946102..fa057324f85 100644 --- a/src/gallium/drivers/r300/r300_render.c +++ b/src/gallium/drivers/r300/r300_render.c @@ -136,12 +136,11 @@ static void r300_emit_draw_elements(struct r300_context *r300, static boolean r300_setup_vertex_buffers(struct r300_context *r300) { - unsigned vbuf_count = r300->aos_count; struct pipe_vertex_buffer *vbuf = r300->vertex_buffer; struct pipe_vertex_element *velem = r300->vertex_element; validate: - for (int i = 0; i < vbuf_count; i++) { + for (int i = 0; i < r300->aos_count; i++) { if (!r300->winsys->add_buffer(r300->winsys, vbuf[velem[i].vertex_buffer_index].buffer, RADEON_GEM_DOMAIN_GTT, 0)) { |