summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-08-23 23:18:39 +0000
committerBrian Paul <[email protected]>2006-08-23 23:18:39 +0000
commita95d5f0f58b9d95627e0f4225b6871dd24169c61 (patch)
tree2df03bf4eccc093bd7f233270cad47d2b5bf3e76 /src
parent4d12a05e6c11ca8d7325503131b2594dfe304164 (diff)
silence warning
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c b/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c
index d3a4bfcd2f5..72c03c53ad9 100644
--- a/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c
+++ b/src/mesa/drivers/dri/r300/radeon_vtxfmt_a.c
@@ -749,8 +749,6 @@ void r300_evict_vbos(GLcontext *ctx, int amount)
r300ContextPtr rmesa = R300_CONTEXT(ctx);
struct _mesa_HashTable *hash = ctx->Shared->BufferObjects;
GLuint k = _mesa_HashFirstEntry(hash);
- struct r300_buffer_object *r300_obj;
- GLvoid *data;
while (amount > 0 && k) {
struct gl_buffer_object *obj = _mesa_lookup_bufferobj(ctx, k);
@@ -758,6 +756,7 @@ void r300_evict_vbos(GLcontext *ctx, int amount)
= (struct r300_buffer_object *) obj;
if (obj->OnCard && obj->Size) {
+ GLvoid *data;
obj->Data = _mesa_malloc(obj->Size);
data = radeon_mm_map(rmesa, r300_obj->id, RADEON_MM_R);