summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2003-12-09 16:02:43 +0000
committerKeith Whitwell <[email protected]>2003-12-09 16:02:43 +0000
commit8592ba94b85b3f0f93ae875eece259b4626a6759 (patch)
tree0267a7620f15bc98a103be21cc338183cb6c058f /src/mesa
parentc4f7de5d785266237fd46ee420d4715771f67dfb (diff)
Fix use of uninited value 'flags', removed unused vars.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_swtcl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_swtcl.c b/src/mesa/drivers/dri/radeon/radeon_swtcl.c
index b6014cd5fa0..46ace70c896 100644
--- a/src/mesa/drivers/dri/radeon/radeon_swtcl.c
+++ b/src/mesa/drivers/dri/radeon/radeon_swtcl.c
@@ -626,8 +626,8 @@ static GLboolean radeon_run_render( GLcontext *ctx,
radeonContextPtr rmesa = RADEON_CONTEXT(ctx);
TNLcontext *tnl = TNL_CONTEXT(ctx);
struct vertex_buffer *VB = &tnl->vb;
- GLuint i, length, flags = 0;
render_func *tab = TAG(render_tab_verts);
+ GLuint i;
if (rmesa->swtcl.indexed_verts.buf && (!VB->Elts || stage->changed_inputs))
RELEASE_ELT_VERTS();
@@ -661,7 +661,7 @@ static GLboolean radeon_run_render( GLcontext *ctx,
start, start+length);
if (length)
- tab[prim & PRIM_MODE_MASK]( ctx, start, start + length, flags );
+ tab[prim & PRIM_MODE_MASK]( ctx, start, start + length, prim );
}
tnl->Driver.Render.Finish( ctx );