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

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:
Henri Verbeet 2021-11-22 18:14:44 -06:00 committed by Alexandre Julliard
parent 0b9002de96
commit 7816809395
1 changed files with 1 additions and 1 deletions

View File

@ -1598,7 +1598,7 @@ void wined3d_unordered_access_view_gl_clear(struct wined3d_unordered_access_view
get_buffer_view_range(buffer, &view_gl->v.desc, &format_gl->f, &offset, &size); get_buffer_view_range(buffer, &view_gl->v.desc, &format_gl->f, &offset, &size);
wined3d_context_gl_bind_bo(context_gl, bo_gl->binding, bo_gl->id); wined3d_context_gl_bind_bo(context_gl, bo_gl->binding, bo_gl->id);
GL_EXTCALL(glClearBufferSubData(bo_gl->binding, format_gl->internal, GL_EXTCALL(glClearBufferSubData(bo_gl->binding, format_gl->internal,
offset, size, format_gl->format, format_gl->type, clear_value)); bo_gl->b.buffer_offset + offset, size, format_gl->format, format_gl->type, clear_value));
wined3d_context_gl_reference_bo(context_gl, bo_gl); wined3d_context_gl_reference_bo(context_gl, bo_gl);
checkGLcall("clear unordered access view"); checkGLcall("clear unordered access view");
} }