From 207b996c81d5eaa7249d9620f4088e838f708ff9 Mon Sep 17 00:00:00 2001 From: Thog Date: Wed, 23 Jan 2019 19:38:33 +0100 Subject: [PATCH] Don't throw an exception in the layer handling --- Ryujinx.Graphics/GpuResourceManager.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Ryujinx.Graphics/GpuResourceManager.cs b/Ryujinx.Graphics/GpuResourceManager.cs index 3fdf11711e..008991f671 100644 --- a/Ryujinx.Graphics/GpuResourceManager.cs +++ b/Ryujinx.Graphics/GpuResourceManager.cs @@ -1,3 +1,4 @@ +using Ryujinx.Common.Logging; using Ryujinx.Graphics.Gal; using Ryujinx.Graphics.Memory; using Ryujinx.Graphics.Texture; @@ -80,9 +81,10 @@ namespace Ryujinx.Graphics { ImageType Type = ImageTypes[Position]; + // FIXME(thog): I'm actually unsure if we should allow other image type, gpu testing needs to be done here. if (Type != ImageType.Texture && Type != ImageType.TextureArrayLayer) { - throw new InvalidOperationException(); + Logger.PrintWarning(LogClass.Gpu, $"Possible invalid layer type detected! (ImageType.{Type})"); } return true;