Skip to content

Commit e551f8f

Browse files
committed
Fix clang compile error
1 parent f52970c commit e551f8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2200,6 +2200,8 @@ void VulkanRenderer::GetTextureFormatInfoVK(Latte::E_GX2SURFFMT format, bool isD
22002200
else
22012201
{
22022202
formatInfoOut->vkImageAspect = VK_IMAGE_ASPECT_COLOR_BIT;
2203+
if(format == (Latte::E_GX2SURFFMT::R16_G16_B16_A16_FLOAT | Latte::E_GX2SURFFMT::FMT_BIT_SRGB)) // Seen in Sonic Transformed level Starry Speedway. SRGB should just be ignored for native float formats?
2204+
format = Latte::E_GX2SURFFMT::R16_G16_B16_A16_FLOAT;
22032205
switch (format)
22042206
{
22052207
// RGBA formats
@@ -2212,7 +2214,6 @@ void VulkanRenderer::GetTextureFormatInfoVK(Latte::E_GX2SURFFMT format, bool isD
22122214
formatInfoOut->decoder = TextureDecoder_R32_G32_B32_A32_UINT::getInstance();
22132215
break;
22142216
case Latte::E_GX2SURFFMT::R16_G16_B16_A16_FLOAT:
2215-
case Latte::E_GX2SURFFMT::R16_G16_B16_A16_FLOAT | Latte::E_GX2SURFFMT::FMT_BIT_SRGB: // Seen in Sonic Transformed level Starry Speedway. SRGB should just be ignored for native float formats?
22162217
formatInfoOut->vkImageFormat = VK_FORMAT_R16G16B16A16_SFLOAT;
22172218
formatInfoOut->decoder = TextureDecoder_R16_G16_B16_A16_FLOAT::getInstance();
22182219
break;

0 commit comments

Comments
 (0)