Mesa (master): r300g: Minor code cleanup to avoid confusion.
Corbin Simpson
csimpson at kemper.freedesktop.org
Sat Nov 7 14:48:24 PST 2009
Module: Mesa
Branch: master
Commit: 9f49db6f843885620a52a06721d5972afb29f21a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f49db6f843885620a52a06721d5972afb29f21a
Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date: Sat Nov 7 13:37:07 2009 -0800
r300g: Minor code cleanup to avoid confusion.
---
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 0df9a94..fa05732 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)) {
More information about the mesa-commit
mailing list