Fix ~3500 analyser issues

See merge request ryubing/ryujinx!44
This commit is contained in:
MrKev
2025-05-30 17:08:34 -05:00
committed by LotP
parent 417df486b1
commit 361d0c5632
622 changed files with 3080 additions and 2652 deletions

View File

@@ -153,7 +153,7 @@ namespace Ryujinx.Graphics.Texture.Encoders
int selectedPartition = 0;
if (selectedMode == 1 || selectedMode == 7)
if (selectedMode is 1 or 7)
{
int partitionSelectionLowestError = int.MaxValue;
@@ -180,7 +180,7 @@ namespace Ryujinx.Graphics.Texture.Encoders
for (int m = 0; m < 8; m++)
{
for (int r = 0; r < (m == 4 || m == 5 ? 4 : 1); r++)
for (int r = 0; r < (m is 4 or 5 ? 4 : 1); r++)
{
for (int im = 0; im < (m == 4 ? 2 : 1); im++)
{