projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9192347
)
mesa/st: fix tracking of mapped buffer ranges
author
Keith Whitwell
<keithw@vmware.com>
Tue, 9 Jun 2009 17:32:18 +0000
(18:32 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Tue, 9 Jun 2009 17:32:18 +0000
(18:32 +0100)
In st_bufferobj_map_range(), set obj->Offset consistently with its
usage elsewhere.
src/mesa/state_tracker/st_cb_bufferobjects.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_bufferobjects.c
b/src/mesa/state_tracker/st_cb_bufferobjects.c
index fbe6aa25de6b48af3938ad2912121a5c40c6dee9..19a0e6736237b3f6fab4596442b549c0b2db4359 100644
(file)
--- 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;
}