diff options
author | Ian Romanick <[email protected]> | 2009-11-23 23:14:49 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2009-11-23 23:14:49 -0800 |
commit | b12ca6b87b55e3359e81d5a3be380c860478e353 (patch) | |
tree | 504d91f693fa83fc8fec1f4274292974a362e943 /src/mesa/drivers/dri | |
parent | da0883114b1dceceff8a38deea1bb870fda40464 (diff) |
i915: Initialize Length and Offset fields when mapping a buffer object
This fixes an assertion failure in _mesa_MapBufferARB.
Fixes bugzilla #25253.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_buffer_objects.c | 2 |
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 a0225936c81..ccce9e712d8 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; } |