diff options
author | Brian Paul <[email protected]> | 2011-08-24 14:50:28 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-08-24 14:50:28 -0600 |
commit | 038d654bcb4e9d88eab420cefc3169d4845db4c9 (patch) | |
tree | b2bcdff76a4f0596fbe71929403b2d5fc7b46cbe | |
parent | 473cf0633959aa3fb965e27499d4f4ca60e6cafd (diff) |
vbo: remove unused var, remove unneeded local var
-rw-r--r-- | src/mesa/vbo/vbo_exec_draw.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/vbo/vbo_exec_draw.c b/src/mesa/vbo/vbo_exec_draw.c index 25436c6d6d2..8ffaaaa4876 100644 --- a/src/mesa/vbo/vbo_exec_draw.c +++ b/src/mesa/vbo/vbo_exec_draw.c @@ -260,8 +260,6 @@ vbo_exec_bind_arrays( struct gl_context *ctx ) static void vbo_exec_vtx_unmap( struct vbo_exec_context *exec ) { - GLenum target = GL_ARRAY_BUFFER_ARB; - if (_mesa_is_bufferobj(exec->vtx.bufferobj)) { struct gl_context *ctx = exec->ctx; @@ -295,7 +293,6 @@ void vbo_exec_vtx_map( struct vbo_exec_context *exec ) { struct gl_context *ctx = exec->ctx; - const GLenum target = GL_ARRAY_BUFFER_ARB; const GLenum accessRange = GL_MAP_WRITE_BIT | /* for MapBufferRange */ GL_MAP_INVALIDATE_RANGE_BIT | GL_MAP_UNSYNCHRONIZED_BIT | @@ -325,7 +322,7 @@ vbo_exec_vtx_map( struct vbo_exec_context *exec ) /* Need to allocate a new VBO */ exec->vtx.buffer_used = 0; - ctx->Driver.BufferData(ctx, target, + ctx->Driver.BufferData(ctx, GL_ARRAY_BUFFER_ARB, VBO_VERT_BUFFER_SIZE, NULL, usage, exec->vtx.bufferobj); |