Fix exception throw message for unimpl texture formats

This commit is contained in:
gdkchan 2018-09-01 12:24:59 -03:00
commit 53cf47907e
3 changed files with 3 additions and 3 deletions

View file

@ -124,7 +124,7 @@ namespace Ryujinx.Graphics.Gal
break; break;
} }
throw new NotImplementedException("0x" + Format.ToString("x2") + " " + Type.ToString()); throw new NotImplementedException("0x" + ((int)Format).ToString("x2") + " " + Type.ToString());
} }
public static GalImageFormat ConvertFrameBuffer(GalFrameBufferFormat Format) public static GalImageFormat ConvertFrameBuffer(GalFrameBufferFormat Format)

View file

@ -177,7 +177,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) public static int CompressedTextureSize(int TextureWidth, int TextureHeight, int BlockWidth, int BlockHeight, int Bpb)

View file

@ -49,7 +49,7 @@ namespace Ryujinx.HLE.Gpu.Texture
case GalTextureFormat.Astc2D10x6: return Read16BptCompressedTexture(Memory, Texture, 10, 6); 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) private unsafe static byte[] Read1Bpp(IAMemory Memory, TextureInfo Texture)