summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-09-01 12:23:52 -0600
committerBrian Paul <brianp@vmware.com>2009-09-01 17:39:30 -0600
commita1e869b417745175e82377934619231363b1caba (patch)
treec3bf06e18c4e6c4c6d11c735fceaa3f8da2193f4 /src/mesa/drivers/dri/intel
parent15e6d08670eeaf843ae3d6e557d595da750a5e99 (diff)
intel: set Length/Offset fields in intel_bufferobj_map()
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r--src/mesa/drivers/dri/intel/intel_buffer_objects.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_buffer_objects.c b/src/mesa/drivers/dri/intel/intel_buffer_objects.c
index 6f7077e17f..a3aabe9f37 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;
}