renderer_vulkan: Allow instance creation in systems with no layers. (#2528)

This commit is contained in:
Wunk authored and OpenSauce04 committed 2026-09-11 13:31:13 +01:00
1 parent 26e608f6fa
commit 8c4310384e
1 file changed
+1 -2
@@ -330,8 +330,7 @@ vk::UniqueInstance CreateInstance(const Common::DynamicLibrary& library,
// Sanitize layers list
const auto layer_properties = vk::enumerateInstanceLayerProperties();
if (layer_properties.empty()) {
LOG_ERROR(Render_Vulkan, "Failed to query layer properties");
return {};
LOG_WARNING(Render_Vulkan, "Instance layer properties list is empty");
}
boost::container::erase_if(layers, [&](const char* layer) -> bool {