From: Ian Romanick Date: Tue, 24 Nov 2009 07:14:49 +0000 (-0800) Subject: i915: Initialize Length and Offset fields when mapping a buffer object X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b12ca6b87b55e3359e81d5a3be380c860478e353;p=mesa.git i915: Initialize Length and Offset fields when mapping a buffer object This fixes an assertion failure in _mesa_MapBufferARB. Fixes bugzilla #25253. --- diff --git a/src/mesa/drivers/dri/intel/intel_buffer_objects.c b/src/mesa/drivers/dri/intel/intel_buffer_objects.c index a0225936c81..ccce9e712d8 100644 --- a/src/mesa/drivers/dri/intel/intel_buffer_objects.c +++ b/src/mesa/drivers/dri/intel/intel_buffer_objects.c @@ -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; }