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:
parent
99fbc04bfe
commit
3cffe92315
@ -2755,6 +2755,12 @@ static HRESULT WINAPI d3d_device3_SetRenderState(IDirect3DDevice3 *iface,
|
|||||||
|
|
||||||
TRACE("iface %p, state %#x, value %#x.\n", iface, state, value);
|
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();
|
wined3d_mutex_lock();
|
||||||
|
|
||||||
switch (state)
|
switch (state)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user