summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-11-23 23:14:49 -0800
committerIan Romanick <ian.d.romanick@intel.com>2009-11-23 23:14:49 -0800
commitb12ca6b87b55e3359e81d5a3be380c860478e353 (patch)
tree504d91f693fa83fc8fec1f4274292974a362e943
parentda0883114b1dceceff8a38deea1bb870fda40464 (diff)
downloadexternal_mesa3d-b12ca6b87b55e3359e81d5a3be380c860478e353.zip
external_mesa3d-b12ca6b87b55e3359e81d5a3be380c860478e353.tar.gz
external_mesa3d-b12ca6b87b55e3359e81d5a3be380c860478e353.tar.bz2
i915: Initialize Length and Offset fields when mapping a buffer object
This fixes an assertion failure in _mesa_MapBufferARB. Fixes bugzilla #25253.
-rw-r--r--src/mesa/drivers/dri/intel/intel_buffer_objects.c2
1 files changed, 2 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 a022593..ccce9e7 100644
--- a/src/mesa/drivers/dri/intel/intel_buffer_objects.c
+++ b/src/mesa/drivers/dri/intel/intel_buffer_objects.c
@@ -254,6 +254,8 @@ intel_bufferobj_map(GLcontext * ctx,
if (intel_obj->sys_buffer) {
obj->Pointer = intel_obj->sys_buffer;
+ obj->Length = obj->Size;
+ obj->Offset = 0;
return obj->Pointer;
}