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:
parent
8f0c9e490b
commit
ba5f90b29a
|
@ -3788,7 +3788,8 @@ static void wined3d_context_gl_bind_unordered_access_views(struct wined3d_contex
|
||||||
format_gl->internal));
|
format_gl->internal));
|
||||||
|
|
||||||
if (view_gl->counter_bo.id)
|
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");
|
checkGLcall("Bind unordered access views");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue