mesa/st: fix tracking of mapped buffer ranges

In st_bufferobj_map_range(), set obj->Offset consistently with its
usage elsewhere.
This commit is contained in:
Keith Whitwell
2009-06-09 18:32:18 +01:00
parent 9192347443
commit 76a1017e97
+1 -1
View File
@@ -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;
}