wined3d: Allow OpenGL indirect draw 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:
Zebediah Figura 2021-11-19 17:23:49 -06:00 committed by Alexandre Julliard
parent 3220ea2431
commit 2e67ea199c
1 changed files with 1 additions and 1 deletions

View File

@ -4738,7 +4738,7 @@ static void wined3d_context_gl_draw_indirect(struct wined3d_context_gl *context_
GL_EXTCALL(glBindBuffer(GL_DRAW_INDIRECT_BUFFER, bo_gl->id));
offset = (void *)(GLintptr)parameters->offset;
offset = (const uint8_t *)bo_gl->b.buffer_offset + parameters->offset;
if (idx_size)
{
GLenum idx_type = idx_size == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT;