diff options
author | José Fonseca <[email protected]> | 2009-03-03 18:52:51 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-03-03 18:52:51 +0000 |
commit | 004d8f11882c6c149a395cf2e86d5d5fb3fa114b (patch) | |
tree | 24a12be904abf67cf763ff141885eed5fef26fa9 /src/mesa/vbo/vbo_exec_draw.c | |
parent | 190db8b4c36bffcaae996538e250eb144242c064 (diff) |
mesa: Massage the interface to more closely resemble ARB_map_buffer_range
Diffstat (limited to 'src/mesa/vbo/vbo_exec_draw.c')
-rw-r--r-- | src/mesa/vbo/vbo_exec_draw.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/vbo/vbo_exec_draw.c b/src/mesa/vbo/vbo_exec_draw.c index 38b6c56f479..b08909c76fb 100644 --- a/src/mesa/vbo/vbo_exec_draw.c +++ b/src/mesa/vbo/vbo_exec_draw.c @@ -281,11 +281,8 @@ void vbo_exec_vtx_map( struct vbo_exec_context *exec ) MESA_MAP_NOWAIT_BIT), exec->vtx.bufferobj); } - - if (exec->vtx.buffer_map) { - exec->vtx.buffer_map += exec->vtx.buffer_used / sizeof(float); - } - else { + + if (!exec->vtx.buffer_map) { exec->vtx.buffer_used = 0; ctx->Driver.BufferData(ctx, target, |