aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/TextureStorage.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2019-12-28 20:45:33 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commitaf8498d6790ba83f1cf87eccf5f272f2ccbeb169 (patch)
treef4bbd0c418a056211f5077646100bedeb5e8fc13 /Ryujinx.Graphics.OpenGL/TextureStorage.cs
parentd1ab9fb42c2fd9f018d4410ca619cd66294eafc9 (diff)
Add basic error logging to the GPU
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/TextureStorage.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/TextureStorage.cs10
1 files changed, 6 insertions, 4 deletions
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);
}