Moved magic value to constant. I liked the magic :(

This commit is contained in:
Andy Adshead 2019-02-19 06:03:01 +00:00
parent df09de6399
commit 0938c12462
2 changed files with 3 additions and 1 deletions

View file

@ -439,7 +439,7 @@ namespace Ryujinx.Graphics.Graphics3d
int height = Math.Abs(top - bottom);
// If the scissor test covers the whole possible viewport, i.e. uninititalized, disable scissor test
if ((width > 16383 && height > 16383) || width <= 0 || height <= 0)
if ((width > NvGpu.MaxViewportSize && height > NvGpu.MaxViewportSize) || width <= 0 || height <= 0)
{
State.ScissorTestEnabled[Index] = false;
continue;

View file

@ -8,6 +8,8 @@ namespace Ryujinx.Graphics
{
public class NvGpu
{
public const int MaxViewportSize = 0x3FFF;
public IGalRenderer Renderer { get; private set; }
public GpuResourceManager ResourceManager { get; private set; }