Skip to content

Commit

Permalink
Return D3D_OK for SetRenderState calls with D3DRS_ZVISIBLE (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterSnowfall authored Sep 8, 2024
1 parent 2b25f27 commit 46f8e4b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions source/d3d8to9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,6 @@ HRESULT STDMETHODCALLTYPE Direct3DDevice8::SetRenderState(D3DRENDERSTATETYPE Sta
switch (static_cast<DWORD>(State))
{
case D3DRS_ZVISIBLE:
return D3DERR_INVALIDCALL;
case D3DRS_PATCHSEGMENTS:
case D3DRS_LINEPATTERN:
case D3DRS_SOFTWAREVERTEXPROCESSING:
Expand Down Expand Up @@ -756,7 +755,6 @@ HRESULT STDMETHODCALLTYPE Direct3DDevice8::GetRenderState(D3DRENDERSTATETYPE Sta
switch (static_cast<DWORD>(State))
{
case D3DRS_ZVISIBLE:
return D3DERR_INVALIDCALL;
case D3DRS_LINEPATTERN:
*pValue = 0;
return D3D_OK;
Expand Down

0 comments on commit 46f8e4b

Please sign in to comment.