From 830cbf91bb8766e6347291bdff765a8a4e8c95b8 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 11 Jun 2022 14:31:17 -0300 Subject: [PATCH] Ignore ClipControl on draw texture fallback (#3388) --- Ryujinx.Graphics.OpenGL/Pipeline.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Ryujinx.Graphics.OpenGL/Pipeline.cs b/Ryujinx.Graphics.OpenGL/Pipeline.cs index ced41d48..637e4606 100644 --- a/Ryujinx.Graphics.OpenGL/Pipeline.cs +++ b/Ryujinx.Graphics.OpenGL/Pipeline.cs @@ -597,6 +597,8 @@ namespace Ryujinx.Graphics.OpenGL GL.EndTransformFeedback(); } + GL.ClipControl(ClipOrigin.UpperLeft, ClipDepthMode.NegativeOneToOne); + _drawTexture.Draw( view, samp, @@ -627,6 +629,8 @@ namespace Ryujinx.Graphics.OpenGL { GL.BeginTransformFeedback(_tfTopology); } + + RestoreClipControl(); } } }