mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-09 15:28:35 +00:00
c652494219
"Screen scissor" is the minimum size of all render targets, and is set when any render target is bound on NVN or OpenGL. Since it works on all active texture's real sizes, it is therefore more reliable than viewport 0's width, and is actually set before clear. This fixes a regression with Hyrule Warriors: Age Of Calamity's cubemaps, which did not set viewport dimensions before clear. This resulted in attempting to create a cubemap with rectangular sides, which is logically and physically impossible. (also it just fails)
13 lines
257 B
C#
13 lines
257 B
C#
namespace Ryujinx.Graphics.Gpu.State
|
|
{
|
|
struct ScreenScissorState
|
|
{
|
|
#pragma warning disable CS0649
|
|
public ushort X;
|
|
public ushort Width;
|
|
public ushort Y;
|
|
public ushort Height;
|
|
#pragma warning restore CS0649
|
|
}
|
|
}
|