intel: set Length/Offset fields in intel_bufferobj_map()
authorBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2009 18:23:52 +0000 (12:23 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2009 23:39:30 +0000 (17:39 -0600)
src/mesa/drivers/dri/intel/intel_buffer_objects.c

index 6f7077e17f411fd11d93a4f727a158317bc96825..a3aabe9f37f2ad49ea16d4979e85a886c895d04f 100644 (file)
@@ -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;
 }