Skip to content
Snippets Groups Projects
Commit 126d62ed authored by Emma Anholt's avatar Emma Anholt
Browse files

i915: Fix GetBufferSubData in the case of a system-memory BO.

Bug #23760 (crashes in wine)
parent 1730b8db
No related merge requests found
......@@ -209,7 +209,10 @@ intel_bufferobj_get_subdata(GLcontext * ctx,
struct intel_buffer_object *intel_obj = intel_buffer_object(obj);
assert(intel_obj);
dri_bo_get_subdata(intel_obj->buffer, offset, size, data);
if (intel_obj->sys_buffer)
memcpy(data, (char *)intel_obj->sys_buffer + offset, size);
else
dri_bo_get_subdata(intel_obj->buffer, offset, size, data);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment