diff options
author | Keith Whitwell <[email protected]> | 2009-06-09 18:32:18 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-06-09 18:32:18 +0100 |
commit | 76a1017e978f8e51114d765c8c98ff25da13042b (patch) | |
tree | b7f938b355d7a83a2c6555c044c0d3d73beb8ce3 /src | |
parent | 9192347443bc3db9ebeb4b5cc090133b63396b04 (diff) |
mesa/st: fix tracking of mapped buffer ranges
In st_bufferobj_map_range(), set obj->Offset consistently with its
usage elsewhere.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_cb_bufferobjects.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |