misc: chore: Merge duplicated 'if' branches

This commit is contained in:
KeatonTheBot
2025-09-24 13:26:50 -05:00
parent 6e5bd0c9f2
commit 9c37a557dd
22 changed files with 77 additions and 313 deletions
@@ -852,11 +852,8 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
bool hasDepth = dsFormat.Format.HasDepth();
bool hasStencil = dsFormat.Format.HasStencil();
if (hasStencil && (!clearStencil || (clearAffectedByStencilMask && _state.State.StencilTestState.FrontMask != 0xff)))
{
fullClear = false;
}
else if (hasDepth && !clearDepth)
if (hasStencil && (!clearStencil || (clearAffectedByStencilMask && _state.State.StencilTestState.FrontMask != 0xff)) ||
hasDepth && !clearDepth)
{
fullClear = false;
}