From: José Fonseca Date: Wed, 4 Mar 2009 17:42:36 +0000 (+0000) Subject: Merge commit 'origin/master' into gallium-map-range X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99a540bfbeea1762266a937deffc5010511eb38d;p=mesa.git Merge commit 'origin/master' into gallium-map-range --- 99a540bfbeea1762266a937deffc5010511eb38d diff --cc src/mesa/vbo/vbo_exec_draw.c index c85e142a5a7,59e176b8375..6f8d1f8eb07 --- a/src/mesa/vbo/vbo_exec_draw.c +++ b/src/mesa/vbo/vbo_exec_draw.c @@@ -287,9 -284,13 +291,10 @@@ void vbo_exec_vtx_map( struct vbo_exec_ GL_MAP_UNSYNCHRONIZED_BIT | MESA_MAP_NOWAIT_BIT), exec->vtx.bufferobj); + exec->vtx.buffer_ptr = exec->vtx.buffer_map; } - - 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,