mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-06 07:28:54 +02:00
Flip viewport based on screen scissor when Y negate is enabled
This commit is contained in:
@@ -777,6 +777,11 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
|
|||||||
float width = scaleX * 2;
|
float width = scaleX * 2;
|
||||||
float height = scaleY * 2;
|
float height = scaleY * 2;
|
||||||
|
|
||||||
|
if (yNegate)
|
||||||
|
{
|
||||||
|
y += _state.State.ScreenScissorState.Height - MathF.Abs(height);
|
||||||
|
}
|
||||||
|
|
||||||
float scale = _channel.TextureManager.RenderTargetScale;
|
float scale = _channel.TextureManager.RenderTargetScale;
|
||||||
if (scale != 1f)
|
if (scale != 1f)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user