Commit d4c3bf9d authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Respect the BO buffer offset in wined3d_buffer_gl_download_ranges().

parent 2961640b
......@@ -1412,8 +1412,8 @@ static void wined3d_buffer_gl_download_ranges(struct wined3d_buffer *buffer, str
while (range_count--)
{
range = &ranges[range_count];
GL_EXTCALL(glGetBufferSubData(bo_gl->binding,
range->offset, range->size, (BYTE *)data + range->offset - data_offset));
GL_EXTCALL(glGetBufferSubData(bo_gl->binding, bo_gl->b.buffer_offset + range->offset,
range->size, (BYTE *)data + range->offset - data_offset));
}
checkGLcall("buffer download");
}
......
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