Skip to content

Commit

Permalink
Fix SetDepthStencilSurface()
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Jul 9, 2024
1 parent 85f51aa commit fd52427
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ddraw/IDirectDrawX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3462,11 +3462,7 @@ HRESULT m_IDirectDrawX::SetDepthStencilSurface(m_IDirectDrawSurfaceX* lpSurface)
{
HRESULT hr = D3D_OK;

if (lpSurface == DepthStencilSurface)
{
return hr;
}
else if (!lpSurface)
if (!lpSurface)
{
DepthStencilSurface = nullptr;

Expand Down

0 comments on commit fd52427

Please sign in to comment.