diff options
-rw-r--r-- | Ryujinx.Graphics/Texture/ImageUtils.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.Graphics/Texture/ImageUtils.cs b/Ryujinx.Graphics/Texture/ImageUtils.cs index 89c29557..417d7998 100644 --- a/Ryujinx.Graphics/Texture/ImageUtils.cs +++ b/Ryujinx.Graphics/Texture/ImageUtils.cs @@ -147,14 +147,14 @@ namespace Ryujinx.Graphics.Texture GalTextureType AType, bool ConvSrgb) { - if (RType != GType || RType != BType || RType != AType) + if (!s_TextureTable.TryGetValue(Format, out GalImageFormat ImageFormat)) { - throw new NotImplementedException("Per component types are not implemented!"); + throw new NotImplementedException($"Format 0x{((int)Format):x} not implemented!"); } - if (!s_TextureTable.TryGetValue(Format, out GalImageFormat ImageFormat)) + if (!HasDepth(ImageFormat) && (RType != GType || RType != BType || RType != AType)) { - throw new NotImplementedException($"Format 0x{((int)Format):x} not implemented!"); + throw new NotImplementedException($"Per component types are not implemented!"); } GalImageFormat FormatType = ConvSrgb ? Srgb : GetFormatType(RType); |