diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-09-01 18:51:51 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-01 18:51:51 -0300 |
| commit | b549daed034225a0b305dc40497d73983cc3827e (patch) | |
| tree | 8bb77fa94a1ad1f8df56c82b9eac925da1aa90d7 /Ryujinx.HLE/Gpu/Texture | |
| parent | e72fd3f7a7cf770283f4cbd4b082677a83daf515 (diff) | |
Fix exception throw message for unimpl texture formats (#398)
Diffstat (limited to 'Ryujinx.HLE/Gpu/Texture')
| -rw-r--r-- | Ryujinx.HLE/Gpu/Texture/TextureHelper.cs | 2 | ||||
| -rw-r--r-- | Ryujinx.HLE/Gpu/Texture/TextureReader.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.HLE/Gpu/Texture/TextureHelper.cs b/Ryujinx.HLE/Gpu/Texture/TextureHelper.cs index 98da852e..2683174d 100644 --- a/Ryujinx.HLE/Gpu/Texture/TextureHelper.cs +++ b/Ryujinx.HLE/Gpu/Texture/TextureHelper.cs @@ -178,7 +178,7 @@ namespace Ryujinx.HLE.Gpu.Texture } } - throw new NotImplementedException("0x" + Image.Format.ToString("x2")); + throw new NotImplementedException(Image.Format.ToString()); } public static int CompressedTextureSize(int TextureWidth, int TextureHeight, int BlockWidth, int BlockHeight, int Bpb) diff --git a/Ryujinx.HLE/Gpu/Texture/TextureReader.cs b/Ryujinx.HLE/Gpu/Texture/TextureReader.cs index 65fa7e6e..d293bf9f 100644 --- a/Ryujinx.HLE/Gpu/Texture/TextureReader.cs +++ b/Ryujinx.HLE/Gpu/Texture/TextureReader.cs @@ -50,7 +50,7 @@ namespace Ryujinx.HLE.Gpu.Texture case GalTextureFormat.Astc2D10x6: return Read16BptCompressedTexture(Memory, Texture, 10, 6); } - throw new NotImplementedException("0x" + Texture.Format.ToString("x2")); + throw new NotImplementedException("0x" + ((int)Texture.Format).ToString("x2")); } private unsafe static byte[] Read1Bpp(IAMemory Memory, TextureInfo Texture) |
