diff options
author | Brian Paul <brianp@vmware.com> | 2009-09-01 12:23:52 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-09-01 17:39:30 -0600 |
commit | a1e869b417745175e82377934619231363b1caba (patch) | |
tree | c3bf06e18c4e6c4c6d11c735fceaa3f8da2193f4 | |
parent | 15e6d08670eeaf843ae3d6e557d595da750a5e99 (diff) |
intel: set Length/Offset fields in intel_bufferobj_map()
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_buffer_objects.c | 3 |
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; } |