From fa8262fa4af2a6be524b1201f1e8f1db3820282a Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 10 Oct 2018 00:41:51 +1100 Subject: [PATCH] Vulkan: Don't panic on missing color/depth buffer in config --- Source/Core/VideoBackends/Vulkan/Util.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/VideoBackends/Vulkan/Util.cpp b/Source/Core/VideoBackends/Vulkan/Util.cpp index 4ffa5c0146..35c9bcfbaf 100644 --- a/Source/Core/VideoBackends/Vulkan/Util.cpp +++ b/Source/Core/VideoBackends/Vulkan/Util.cpp @@ -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;