wined3d: Allow OpenGL atomic counter buffer objects to be suballocated from a larger buffer.

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-18 21:06:21 -06:00 committed by Alexandre Julliard
parent 8f0c9e490b
commit ba5f90b29a
1 changed files with 2 additions and 1 deletions

View File

@ -3788,7 +3788,8 @@ static void wined3d_context_gl_bind_unordered_access_views(struct wined3d_contex
format_gl->internal));
if (view_gl->counter_bo.id)
GL_EXTCALL(glBindBufferBase(GL_ATOMIC_COUNTER_BUFFER, i, view_gl->counter_bo.id));
GL_EXTCALL(glBindBufferRange(GL_ATOMIC_COUNTER_BUFFER, i, view_gl->counter_bo.id,
view_gl->counter_bo.buffer_offset, view_gl->counter_bo.size));
}
checkGLcall("Bind unordered access views");
}