From: Brian Paul Date: Tue, 1 Sep 2009 18:23:52 +0000 (-0600) Subject: intel: set Length/Offset fields in intel_bufferobj_map() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1e869b417745175e82377934619231363b1caba;p=mesa.git intel: set Length/Offset fields in intel_bufferobj_map() --- diff --git a/src/mesa/drivers/dri/intel/intel_buffer_objects.c b/src/mesa/drivers/dri/intel/intel_buffer_objects.c index 6f7077e17f4..a3aabe9f37f 100644 --- a/src/mesa/drivers/dri/intel/intel_buffer_objects.c +++ b/src/mesa/drivers/dri/intel/intel_buffer_objects.c @@ -267,6 +267,9 @@ intel_bufferobj_map(GLcontext * ctx, } obj->Pointer = intel_obj->buffer->virtual; + obj->Length = obj->Size; + obj->Offset = 0; + return obj->Pointer; }