diff options
author | gdkchan <gab.dark.100@gmail.com> | 2019-12-28 20:45:33 -0300 |
---|---|---|
committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
commit | af8498d6790ba83f1cf87eccf5f272f2ccbeb169 (patch) | |
tree | f4bbd0c418a056211f5077646100bedeb5e8fc13 /Ryujinx.Graphics.OpenGL/Program.cs | |
parent | d1ab9fb42c2fd9f018d4410ca619cd66294eafc9 (diff) |
Add basic error logging to the GPU
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Program.cs')
-rw-r--r-- | Ryujinx.Graphics.OpenGL/Program.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Program.cs b/Ryujinx.Graphics.OpenGL/Program.cs index 820910a9..be1cc7de 100644 --- a/Ryujinx.Graphics.OpenGL/Program.cs +++ b/Ryujinx.Graphics.OpenGL/Program.cs @@ -1,6 +1,7 @@ +using OpenTK.Graphics.OpenGL; +using Ryujinx.Common.Logging; using Ryujinx.Graphics.GAL; using Ryujinx.Graphics.Shader; -using OpenTK.Graphics.OpenGL; namespace Ryujinx.Graphics.OpenGL { @@ -190,13 +191,11 @@ namespace Ryujinx.Graphics.OpenGL private void CheckProgramLink() { - int status = 0; - - GL.GetProgram(Handle, GetProgramParameterName.LinkStatus, out status); + GL.GetProgram(Handle, GetProgramParameterName.LinkStatus, out int status); if (status == 0) { - // throw new System.Exception(GL.GetProgramInfoLog(Handle)); + Logger.PrintError(LogClass.Gpu, $"Shader linking failed: {GL.GetProgramInfoLog(Handle)}"); } else { |