mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 17:18:30 +02:00
st/mesa: fix incorrect bufObj Length assignment, remove unneeded assertion
This commit is contained in:
parent
7eed6ab5b5
commit
34bb024cf2
1 changed files with 1 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue