mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
i915: Initialize Length and Offset fields when mapping a buffer object
This fixes an assertion failure in _mesa_MapBufferARB. Fixes bugzilla #25253.
This commit is contained in:
parent
da0883114b
commit
b12ca6b87b
1 changed files with 2 additions and 0 deletions
|
|
@ -254,6 +254,8 @@ intel_bufferobj_map(GLcontext * ctx,
|
|||
|
||||
if (intel_obj->sys_buffer) {
|
||||
obj->Pointer = intel_obj->sys_buffer;
|
||||
obj->Length = obj->Size;
|
||||
obj->Offset = 0;
|
||||
return obj->Pointer;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue