Просмотр исходного кода

Revert change to skip flush when range size is 0 (#6254)

gdkchan 2 лет назад
Родитель
Сommit
8927e0669f
1 измененных файлов с 0 добавлено и 6 удалено
  1. 0 6
      src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs

+ 0 - 6
src/Ryujinx.Graphics.Gpu/Image/TextureGroup.cs

@@ -1630,12 +1630,6 @@ namespace Ryujinx.Graphics.Gpu.Image
                 return;
                 return;
             }
             }
 
 
-            // If size is zero, we have nothing to flush.
-            if (size == 0)
-            {
-                return;
-            }
-
             // There is a small gap here where the action is removed but _actionRegistered is still 1.
             // There is a small gap here where the action is removed but _actionRegistered is still 1.
             // In this case it will skip registering the action, but here we are already handling it,
             // In this case it will skip registering the action, but here we are already handling it,
             // so there shouldn't be any issue as it's the same handler for all actions.
             // so there shouldn't be any issue as it's the same handler for all actions.