Skip to content

Commit

Permalink
Fixed overlay clipping problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmonik committed Jan 11, 2024
1 parent 259e1bd commit 6672a95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OVP/D3D9Client/D3D9Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,8 @@ void D3D9Client::PushRenderTarget(LPDIRECT3DSURFACE9 pColor, LPDIRECT3DSURFACE9
pDevice->SetViewport(&vp);
}

if (pDepthStencil) if (pDevice->SetDepthStencilSurface(pDepthStencil) != S_OK) assert(false);
// If pDepthStencil is NULL set NULL
if (pDevice->SetDepthStencilSurface(pDepthStencil) != S_OK) assert(false);
if (pColor) if (pDevice->SetRenderTarget(0, pColor) != S_OK) assert(false);

RenderStack.push_front(data);
Expand Down

0 comments on commit 6672a95

Please sign in to comment.