wined3d: Respect the BO buffer offset in wined3d_buffer_gl_upload_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:
parent
7816809395
commit
2961640bcb
|
@ -1387,8 +1387,8 @@ static void wined3d_buffer_gl_upload_ranges(struct wined3d_buffer *buffer, struc
|
||||||
while (range_count--)
|
while (range_count--)
|
||||||
{
|
{
|
||||||
range = &ranges[range_count];
|
range = &ranges[range_count];
|
||||||
GL_EXTCALL(glBufferSubData(bo_gl->binding,
|
GL_EXTCALL(glBufferSubData(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));
|
||||||
}
|
}
|
||||||
wined3d_context_gl_reference_bo(context_gl, bo_gl);
|
wined3d_context_gl_reference_bo(context_gl, bo_gl);
|
||||||
checkGLcall("buffer upload");
|
checkGLcall("buffer upload");
|
||||||
|
|
Loading…
Reference in New Issue