Explorar el Código

Account for multisample when calculating render target size hint (#4467)

gdkchan hace 3 años
padre
commit
095ad923ad
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs

+ 1 - 1
Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs

@@ -439,7 +439,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
             int samplesInY = msaaMode.SamplesInY();
 
             var scissor = _state.State.ScreenScissorState;
-            Size sizeHint = new Size(scissor.X + scissor.Width, scissor.Y + scissor.Height, 1);
+            Size sizeHint = new Size((scissor.X + scissor.Width) * samplesInX, (scissor.Y + scissor.Height) * samplesInY, 1);
 
             int clipRegionWidth = int.MaxValue;
             int clipRegionHeight = int.MaxValue;