From af8498d6790ba83f1cf87eccf5f272f2ccbeb169 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 28 Dec 2019 20:45:33 -0300 Subject: Add basic error logging to the GPU --- Ryujinx.Graphics.OpenGL/TextureStorage.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Ryujinx.Graphics.OpenGL/TextureStorage.cs') diff --git a/Ryujinx.Graphics.OpenGL/TextureStorage.cs b/Ryujinx.Graphics.OpenGL/TextureStorage.cs index d74b0a8e..482189ca 100644 --- a/Ryujinx.Graphics.OpenGL/TextureStorage.cs +++ b/Ryujinx.Graphics.OpenGL/TextureStorage.cs @@ -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); } -- cgit v1.2.3