projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15e6d08
)
intel: set Length/Offset fields in intel_bufferobj_map()
author
Brian Paul
<brianp@vmware.com>
Tue, 1 Sep 2009 18:23:52 +0000
(12:23 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 1 Sep 2009 23:39:30 +0000
(17:39 -0600)
src/mesa/drivers/dri/intel/intel_buffer_objects.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_buffer_objects.c
b/src/mesa/drivers/dri/intel/intel_buffer_objects.c
index 6f7077e17f411fd11d93a4f727a158317bc96825..a3aabe9f37f2ad49ea16d4979e85a886c895d04f 100644
(file)
--- 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;
}