From: Keith Whitwell Date: Tue, 9 Jun 2009 17:32:18 +0000 (+0100) Subject: mesa/st: fix tracking of mapped buffer ranges X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76a1017e978f8e51114d765c8c98ff25da13042b;p=mesa.git mesa/st: fix tracking of mapped buffer ranges In st_bufferobj_map_range(), set obj->Offset consistently with its usage elsewhere. --- diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c index fbe6aa25de6..19a0e673623 100644 --- a/src/mesa/state_tracker/st_cb_bufferobjects.c +++ b/src/mesa/state_tracker/st_cb_bufferobjects.c @@ -250,7 +250,7 @@ st_bufferobj_map_range(GLcontext *ctx, GLenum target, map = obj->Pointer = pipe_buffer_map_range(pipe->screen, st_obj->buffer, offset, length, flags); if(obj->Pointer) { - obj->Offset = 0; + obj->Offset = offset; obj->Length = length; map += offset; }