From: Axel Davy Date: Tue, 9 Apr 2019 21:57:37 +0000 (+0200) Subject: st/nine: Always return OK on SetSoftwareVertexProcessing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1fc0714039ce5fced2317d258fbc467af39f3dca;p=mesa.git st/nine: Always return OK on SetSoftwareVertexProcessing This would need more tests to know exactly if INVALIDCALL can be returned in some situations. It seems some games expect D3D_OK, even when noop and illegal. Fixes: https://github.com/iXit/Mesa-3D/issues/302 https://github.com/iXit/Mesa-3D/issues/338 Signed-off-by: Axel Davy --- diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index f165f24ee46..e7317238e6c 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -2716,7 +2716,7 @@ NineDevice9_SetSoftwareVertexProcessing( struct NineDevice9 *This, nine_context_set_swvp(This, bSoftware); return D3D_OK; } else - return D3DERR_INVALIDCALL; /* msdn. TODO: check in practice */ + return D3D_OK; /* msdn seems to indicate INVALIDCALL, but at least Halo expects OK */ } BOOL NINE_WINAPI