ddraw: Return DDERR_INVALIDPARAMS for render states >= D3DSTATE_OVERRIDE_BIAS.

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 2016-01-28 00:17:48 +01:00 committed by Alexandre Julliard
parent 99fbc04bfe
commit 3cffe92315
1 changed files with 6 additions and 0 deletions

View File

@ -2755,6 +2755,12 @@ static HRESULT WINAPI d3d_device3_SetRenderState(IDirect3DDevice3 *iface,
TRACE("iface %p, state %#x, value %#x.\n", iface, state, value);
if (state >= D3DSTATE_OVERRIDE_BIAS)
{
WARN("Unhandled state %#x.\n", state);
return DDERR_INVALIDPARAMS;
}
wined3d_mutex_lock();
switch (state)