summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-11-22 20:04:40 +0100
committerMarek Olšák <[email protected]>2011-11-22 20:56:51 +0100
commit1146441a2dd0a47e51e9762a014fca4b15d9fe97 (patch)
tree96e453dc893dd8d25a73f0fa8df78ed3dd5de7b4 /src
parentc4f51b225b7ec9ce231d140b1abf8637f37a33c7 (diff)
u_vbuf_mgr: remove a useless variable
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_vbuf_mgr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf_mgr.c b/src/gallium/auxiliary/util/u_vbuf_mgr.c
index 377a7e40e01..8f107f36572 100644
--- a/src/gallium/auxiliary/util/u_vbuf_mgr.c
+++ b/src/gallium/auxiliary/util/u_vbuf_mgr.c
@@ -165,7 +165,7 @@ u_vbuf_translate_begin(struct u_vbuf_priv *mgr,
unsigned tr_elem_index[PIPE_MAX_ATTRIBS];
struct translate *tr;
boolean vb_translated[PIPE_MAX_ATTRIBS] = {0};
- uint8_t *vb_map[PIPE_MAX_ATTRIBS] = {0}, *out_map;
+ uint8_t *out_map;
struct pipe_transfer *vb_transfer[PIPE_MAX_ATTRIBS] = {0};
struct pipe_resource *out_buffer = NULL;
unsigned i, num_verts, out_offset;
@@ -230,11 +230,11 @@ u_vbuf_translate_begin(struct u_vbuf_priv *mgr,
if (vb_translated[i]) {
struct pipe_vertex_buffer *vb = &mgr->b.vertex_buffer[i];
- vb_map[i] = pipe_buffer_map(mgr->pipe, vb->buffer,
- PIPE_TRANSFER_READ, &vb_transfer[i]);
+ uint8_t *map = pipe_buffer_map(mgr->pipe, vb->buffer,
+ PIPE_TRANSFER_READ, &vb_transfer[i]);
tr->set_buffer(tr, i,
- vb_map[i] + vb->buffer_offset + vb->stride * min_index,
+ map + vb->buffer_offset + vb->stride * min_index,
vb->stride, ~0);
}
}