mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-29 02:41:08 +00:00
Fix case fall-through when making string name for ETC2
This commit is contained in:
@@ -661,10 +661,10 @@ static std::string ResourceFormatName(const ResourceFormat &fmt)
|
||||
return fmt.SRGBCorrected() ? "BC7_SRGB" : "BC7_UNORM";
|
||||
case ResourceFormatType::ETC2:
|
||||
{
|
||||
if(fmt.compCount == 3)
|
||||
return fmt.SRGBCorrected() ? "ETC2_RGB8_SRGB" : "ETC2_RGB8_UNORM";
|
||||
else if(fmt.compCount == 4)
|
||||
if(fmt.compCount == 4)
|
||||
return fmt.SRGBCorrected() ? "ETC2_RGB8A1_SRGB" : "ETC2_RGB8A1_UNORM";
|
||||
else
|
||||
return fmt.SRGBCorrected() ? "ETC2_RGB8_SRGB" : "ETC2_RGB8_UNORM";
|
||||
}
|
||||
case ResourceFormatType::EAC:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user