mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-11-16 11:03:59 +01:00
renderer_vulkan: Allow instance creation in systems with no layers. (#2528)
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user