wined3d: Avoid passing gl_info to prune_invalid_states().

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:
Józef Kucia 2019-03-03 19:55:24 +01:00 committed by Alexandre Julliard
parent e4bf926c3b
commit 3ef1c469bd
1 changed files with 2 additions and 3 deletions

View File

@ -5386,8 +5386,7 @@ static void multistate_apply_3(struct wined3d_context *context, const struct win
context->device->multistate_funcs[state_id][2](context, state, state_id);
}
static void prune_invalid_states(struct StateEntry *state_table, const struct wined3d_gl_info *gl_info,
const struct wined3d_d3d_info *d3d_info)
static void prune_invalid_states(struct StateEntry *state_table, const struct wined3d_d3d_info *d3d_info)
{
unsigned int start, last, i;
@ -5613,7 +5612,7 @@ HRESULT compile_state_table(struct StateEntry *StateTable, APPLYSTATEFUNC **dev_
}
}
prune_invalid_states(StateTable, gl_info, d3d_info);
prune_invalid_states(StateTable, d3d_info);
validate_state_table(StateTable);
return WINED3D_OK;