projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7eed6ab
)
st/mesa: fix incorrect bufObj Length assignment, remove unneeded assertion
author
Brian Paul
<brianp@vmware.com>
Mon, 8 Jun 2009 22:11:17 +0000
(16:11 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 8 Jun 2009 22:11:17 +0000
(16:11 -0600)
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
a94e11f
..
fbe6aa2
100644
(file)
--- a/
src/mesa/state_tracker/st_cb_bufferobjects.c
+++ b/
src/mesa/state_tracker/st_cb_bufferobjects.c
@@
-251,7
+251,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->Length =
obj->Size
;
+ obj->Length =
length
;
map += offset;
}
@@
-270,7
+270,6
@@
st_bufferobj_flush_mapped_range(GLcontext *ctx, GLenum target,
/* Subrange is relative to mapped range */
assert(offset >= 0);
assert(length >= 0);
- assert(offset < obj->Length);
assert(offset + length <= obj->Length);
pipe_buffer_flush_mapped_range(pipe->screen, st_obj->buffer,