diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2022-02-22 18:01:39 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-07-15 12:29:40 -0700 |
| commit | 290e62f179a86328f90aaac3c87d4d640637dec6 (patch) | |
| tree | c3e21306948d20bb44693e120e7f1f12e82f48f6 /Source/Core/VideoCommon/TextureConversionShader.cpp | |
| parent | 1da24f66feab4d78a21ef795c7bd24b6d76cff8d (diff) | |
Remove casts to integers for texture and EFB formats
The only remaining casts for these types that I know of are in TextureInfo (where format_name is set to the int version of the format, and since that affects filenames and probably would break resource packs, I'm not changing it) and in TextureDecoder_Common's TexDecoder_DrawOverlay, which will be handled separately.
Diffstat (limited to 'Source/Core/VideoCommon/TextureConversionShader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureConversionShader.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/TextureConversionShader.cpp b/Source/Core/VideoCommon/TextureConversionShader.cpp index ed97c48144..e7a2d4a392 100644 --- a/Source/Core/VideoCommon/TextureConversionShader.cpp +++ b/Source/Core/VideoCommon/TextureConversionShader.cpp @@ -48,8 +48,7 @@ u16 GetEncodedSampleCount(EFBCopyFormat format) case EFBCopyFormat::XFB: return 2; default: - PanicAlertFmt("Invalid EFB Copy Format ({:#X})! (GetEncodedSampleCount)", - static_cast<int>(format)); + PanicAlertFmt("Invalid EFB Copy Format {}! (GetEncodedSampleCount)", format); return 1; } } @@ -802,8 +801,7 @@ std::string GenerateEncodingShader(const EFBCopyParams& params, APIType api_type WriteXFBEncoder(code, api_type, params); break; default: - PanicAlertFmt("Invalid EFB Copy Format ({:#X})! (GenerateEncodingShader)", - static_cast<int>(params.copy_format)); + PanicAlertFmt("Invalid EFB Copy Format {}! (GenerateEncodingShader)", params.copy_format); break; } |
