[PATCH 3/7] ddraw: Return DDERR_INVALIDPARAMS for render states >= D3DSTATE_OVERRIDE_BIAS.
Józef Kucia
jkucia at codeweavers.com
Wed Jan 27 17:17:48 CST 2016
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/ddraw/device.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index d654004..e2ed277 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -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)
--
2.4.10
More information about the wine-patches
mailing list