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);
|
int height = Math.Abs(top - bottom);
|
||||||
|
|
||||||
// If the scissor test covers the whole possible viewport, i.e. uninititalized, disable scissor test
|
// 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;
|
State.ScissorTestEnabled[Index] = false;
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -8,6 +8,8 @@ namespace Ryujinx.Graphics
|
||||||
{
|
{
|
||||||
public class NvGpu
|
public class NvGpu
|
||||||
{
|
{
|
||||||
|
public const int MaxViewportSize = 0x3FFF;
|
||||||
|
|
||||||
public IGalRenderer Renderer { get; private set; }
|
public IGalRenderer Renderer { get; private set; }
|
||||||
|
|
||||||
public GpuResourceManager ResourceManager { get; private set; }
|
public GpuResourceManager ResourceManager { get; private set; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue