From 812e32f7753d452f5c6776fa18e2b2a26b4ff3bb Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 25 Oct 2020 17:23:42 -0300 Subject: Fix transform feedback errors caused by host pause/resume and multiple uses (#1634) * Fix transform feedback errors caused by host pause/resume * Fix TFB being used as something else issue with copies * This is supposed to be StreamCopy --- Ryujinx.Graphics.OpenGL/Program.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Ryujinx.Graphics.OpenGL/Program.cs') diff --git a/Ryujinx.Graphics.OpenGL/Program.cs b/Ryujinx.Graphics.OpenGL/Program.cs index 6e253140..babe17a0 100644 --- a/Ryujinx.Graphics.OpenGL/Program.cs +++ b/Ryujinx.Graphics.OpenGL/Program.cs @@ -131,8 +131,6 @@ namespace Ryujinx.Graphics.OpenGL CheckProgramLink(); - Bind(); - int ubBindingPoint = 0; int sbBindingPoint = 0; int textureUnit = 0; @@ -189,7 +187,7 @@ namespace Ryujinx.Graphics.OpenGL continue; } - GL.Uniform1(location, textureUnit); + GL.ProgramUniform1(Handle, location, textureUnit); int uIndex = (int)shader.Stage << TexStageShift | samplerIndex++; @@ -209,7 +207,7 @@ namespace Ryujinx.Graphics.OpenGL continue; } - GL.Uniform1(location, imageUnit); + GL.ProgramUniform1(Handle, location, imageUnit); int uIndex = (int)shader.Stage << ImgStageShift | imageIndex++; -- cgit v1.2.3