wined3d: Set base vertex index also for non-indexed draws.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
13c9fda28f
commit
ceef4e77cf
|
@ -857,6 +857,8 @@ static void wined3d_cs_exec_draw(struct wined3d_cs *cs, const void *data)
|
|||
|
||||
if (op->parameters.indexed && gl_info->supported[ARB_DRAW_ELEMENTS_BASE_VERTEX])
|
||||
base_vertex_idx = direct->base_vertex_idx;
|
||||
else if (!op->parameters.indexed)
|
||||
base_vertex_idx = direct->start_idx;
|
||||
}
|
||||
|
||||
/* ARB_draw_indirect always supports a base vertex offset. */
|
||||
|
|
Loading…
Reference in New Issue