mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-08 22:18:52 +02:00
misc: chore: Merge duplicated 'if' branches
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user