Add basic error logging to the GPU

This commit is contained in:
gdkchan
2020-01-09 02:13:00 +01:00
committed by Thog
parent d1ab9fb42c
commit af8498d679
27 changed files with 473 additions and 493 deletions
+6 -4
View File
@@ -1,7 +1,7 @@
using OpenTK.Graphics.OpenGL;
using Ryujinx.Common.Logging;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.GAL.Texture;
using Ryujinx.Graphics.OpenGL.Formats;
using OpenTK.Graphics.OpenGL;
namespace Ryujinx.Graphics.OpenGL
{
@@ -135,13 +135,15 @@ namespace Ryujinx.Graphics.OpenGL
_info.Height,
_info.Depth);
break;
default:
Logger.PrintError(LogClass.Gpu, $"Invalid or unsupported texture target: {target}.");
break;
}
}
public ITexture CreateDefaultView()
{
int layers = _info.GetLayers();
return CreateView(_info, 0, 0);
}