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:
Ian Romanick 2009-11-23 23:14:49 -08:00
parent da0883114b
commit b12ca6b87b

View file

@ -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;
}