Skip to content

Commit

Permalink
filter out invalid depth set call instead of disabling depth on it
Browse files Browse the repository at this point in the history
character portraits will be fixed, but depth write can bug last setted depth target

related to #275
  • Loading branch information
megai2 committed Aug 11, 2020
1 parent 2c2cc45 commit b40d7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d912pxy/d912pxy_device_surface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ HRESULT d912pxy_device::SetDepthStencilSurface(IDirect3DSurface9* pNewZStencil)
if (newDS)
{
if (newDS->GetDX9DescAtLevel(0).Usage != D3DUSAGE_DEPTHSTENCIL)
newDS = nullptr;
return D3DERR_INVALIDCALL;
}

d912pxy_s.render.iframe.BindSurface(0, newDS);
Expand Down

0 comments on commit b40d7a6

Please sign in to comment.