Vulkan: Don't panic on missing color/depth buffer in config

This commit is contained in:
Stenzek 2018-10-10 00:41:51 +11:00
parent 2644e920cc
commit fa8262fa4a
1 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,9 @@ VkFormat GetVkFormatForHostTextureFormat(AbstractTextureFormat format)
case AbstractTextureFormat::D32F_S8:
return VK_FORMAT_D32_SFLOAT_S8_UINT;
case AbstractTextureFormat::Undefined:
return VK_FORMAT_UNDEFINED;
default:
PanicAlert("Unhandled texture format.");
return VK_FORMAT_R8G8B8A8_UNORM;