From 1fc0714039ce5fced2317d258fbc467af39f3dca Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Tue, 9 Apr 2019 23:57:37 +0200 Subject: [PATCH] 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 --- src/gallium/state_trackers/nine/device9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2