mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
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.
This commit is contained in:
parent
1da24f66fe
commit
290e62f179
6 changed files with 17 additions and 31 deletions
|
@ -550,7 +550,7 @@ std::string GenerateTextureReinterpretShader(TextureFormat from_format, TextureF
|
|||
break;
|
||||
|
||||
default:
|
||||
WARN_LOG_FMT(VIDEO, "From format {} is not supported", static_cast<u32>(from_format));
|
||||
WARN_LOG_FMT(VIDEO, "From format {} is not supported", from_format);
|
||||
return "{}\n";
|
||||
}
|
||||
|
||||
|
@ -602,7 +602,7 @@ std::string GenerateTextureReinterpretShader(TextureFormat from_format, TextureF
|
|||
}
|
||||
break;
|
||||
default:
|
||||
WARN_LOG_FMT(VIDEO, "To format {} is not supported", static_cast<u32>(to_format));
|
||||
WARN_LOG_FMT(VIDEO, "To format {} is not supported", to_format);
|
||||
return "{}\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue