Add basic error logging to the GPU

This commit is contained in:
gdkchan 2019-12-28 20:45:33 -03:00 committed by Thog
parent d1ab9fb42c
commit af8498d679
27 changed files with 473 additions and 493 deletions

View file

@ -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
{