From e4e08e6c673807e4050c01617fc0350a598367a8 Mon Sep 17 00:00:00 2001 From: Thog Date: Thu, 14 Feb 2019 01:03:02 +0100 Subject: [PATCH] Reject 2d layers of non textures in 2d copy engine --- Ryujinx.Graphics/GpuResourceManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Ryujinx.Graphics/GpuResourceManager.cs b/Ryujinx.Graphics/GpuResourceManager.cs index 008991f671..3efeb87ebf 100644 --- a/Ryujinx.Graphics/GpuResourceManager.cs +++ b/Ryujinx.Graphics/GpuResourceManager.cs @@ -81,10 +81,11 @@ 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. + // FIXME(thog): I'm actually unsure if we should deny all other image type, gpu testing needs to be done here. if (Type != ImageType.Texture && Type != ImageType.TextureArrayLayer) { - Logger.PrintWarning(LogClass.Gpu, $"Possible invalid layer type detected! (ImageType.{Type})"); + LayerIndex = -1; + return false; } return true;