From 46f8e4b5e0d274049fe0f036a8ec381e14bc0c26 Mon Sep 17 00:00:00 2001 From: WinterSnowfall Date: Sun, 8 Sep 2024 12:56:05 +0300 Subject: [PATCH] Return D3D_OK for SetRenderState calls with D3DRS_ZVISIBLE (#173) --- source/d3d8to9_device.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/d3d8to9_device.cpp b/source/d3d8to9_device.cpp index 0be6422..0e5f014 100644 --- a/source/d3d8to9_device.cpp +++ b/source/d3d8to9_device.cpp @@ -725,7 +725,6 @@ HRESULT STDMETHODCALLTYPE Direct3DDevice8::SetRenderState(D3DRENDERSTATETYPE Sta switch (static_cast(State)) { case D3DRS_ZVISIBLE: - return D3DERR_INVALIDCALL; case D3DRS_PATCHSEGMENTS: case D3DRS_LINEPATTERN: case D3DRS_SOFTWAREVERTEXPROCESSING: @@ -756,7 +755,6 @@ HRESULT STDMETHODCALLTYPE Direct3DDevice8::GetRenderState(D3DRENDERSTATETYPE Sta switch (static_cast(State)) { case D3DRS_ZVISIBLE: - return D3DERR_INVALIDCALL; case D3DRS_LINEPATTERN: *pValue = 0; return D3D_OK;