Commit 052dbb42 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Do not add the BO address offset when calling glFlushMappedBufferRange().

parent 0e501c00
......@@ -2759,8 +2759,9 @@ static void flush_bo_ranges(struct wined3d_context_gl *context_gl, const struct
{
for (i = 0; i < range_count; ++i)
{
GL_EXTCALL(glFlushMappedBufferRange(bo->binding,
(UINT_PTR)data->addr + ranges[i].offset, ranges[i].size));
/* The offset passed to glFlushMappedBufferRange() is relative to
* the mapped range, so don't add data->addr in this case. */
GL_EXTCALL(glFlushMappedBufferRange(bo->binding, ranges[i].offset, ranges[i].size));
}
}
else if (gl_info->supported[APPLE_FLUSH_BUFFER_RANGE])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment