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

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-11-22 18:14:46 -06:00 committed by Alexandre Julliard
parent 2961640bcb
commit d4c3bf9d79
1 changed files with 2 additions and 2 deletions

View File

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