Moved magic value to constant. I liked the magic :(
This commit is contained in:
parent
df09de6399
commit
0938c12462
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue