Commit 6280926e authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Load buffer before applying state for indirect draws.

wined3d_load_buffer() might invalidate the current state. Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent e9e6a535
......@@ -407,7 +407,6 @@ static void draw_indirect(struct wined3d_context *context, const struct wined3d_
return;
}
wined3d_buffer_load(buffer, context, state);
GL_EXTCALL(glBindBuffer(GL_DRAW_INDIRECT_BUFFER, buffer->buffer_object));
if (idx_size)
......@@ -572,6 +571,9 @@ void draw_primitive(struct wined3d_device *device, const struct wined3d_state *s
wined3d_rendertarget_view_prepare_location(dsv, context, location);
}
if (parameters->indirect)
wined3d_buffer_load(parameters->u.indirect.buffer, context, state);
if (!context_apply_draw_state(context, device, state))
{
context_release(context);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment