diff options
author | GPUCode <geoster3d@gmail.com> | 2023-09-08 21:47:39 +0200 |
---|---|---|
committer | GPUCode <geoster3d@gmail.com> | 2023-09-08 22:28:46 +0200 |
commit | cad28abe613638cddf25569f746a602262352dab (patch) | |
tree | 471e7e01f7c85097bff2b72eb2d3c7c94aa0d069 /src/video_core/vulkan_common/vulkan_instance.cpp | |
parent | cmake: Add option to fetch validation layer binary on android (diff) | |
download | yuzu-cad28abe613638cddf25569f746a602262352dab.tar yuzu-cad28abe613638cddf25569f746a602262352dab.tar.gz yuzu-cad28abe613638cddf25569f746a602262352dab.tar.bz2 yuzu-cad28abe613638cddf25569f746a602262352dab.tar.lz yuzu-cad28abe613638cddf25569f746a602262352dab.tar.xz yuzu-cad28abe613638cddf25569f746a602262352dab.tar.zst yuzu-cad28abe613638cddf25569f746a602262352dab.zip |
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_instance.cpp')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_instance.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/video_core/vulkan_common/vulkan_instance.cpp b/src/video_core/vulkan_common/vulkan_instance.cpp index bc16145be..180657a75 100644 --- a/src/video_core/vulkan_common/vulkan_instance.cpp +++ b/src/video_core/vulkan_common/vulkan_instance.cpp @@ -76,11 +76,9 @@ namespace { extensions.push_back(VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME); } #endif - if (enable_validation) { - const bool debug_utils = - AreExtensionsSupported(dld, std::array{VK_EXT_DEBUG_UTILS_EXTENSION_NAME}); - extensions.push_back(debug_utils ? VK_EXT_DEBUG_UTILS_EXTENSION_NAME - : VK_EXT_DEBUG_REPORT_EXTENSION_NAME); + if (enable_validation && + AreExtensionsSupported(dld, std::array{VK_EXT_DEBUG_UTILS_EXTENSION_NAME})) { + extensions.push_back(VK_EXT_DEBUG_UTILS_EXTENSION_NAME); } return extensions; } |