From 033676ca4df4c4756be043062641bdb433cb64aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 13 Jul 2017 23:36:05 +0200 Subject: [PATCH] Vulkan debug mode: In case of missing validation layers, warn, don't error out. --- Common/Vulkan/VulkanContext.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Common/Vulkan/VulkanContext.cpp b/Common/Vulkan/VulkanContext.cpp index a3daf73d43..8f5c0016e1 100644 --- a/Common/Vulkan/VulkanContext.cpp +++ b/Common/Vulkan/VulkanContext.cpp @@ -149,16 +149,16 @@ VulkanContext::VulkanContext(const char *app_name, int app_ver, uint32_t flags) InitGlobalExtensionProperties(); if (!CheckLayers(instance_layer_properties, instance_layer_names)) { - ELOG("CheckLayers failed"); - init_error_ = "Failed to validate instance layers"; - return; + WLOG("CheckLayers failed"); + // init_error_ = "Failed to validate instance layers"; + // return; } InitDeviceLayerProperties(); if (!CheckLayers(device_layer_properties, device_layer_names)) { - ELOG("CheckLayers failed (2)"); - init_error_ = "Failed to validate device layers"; - return; + WLOG("CheckLayers failed (2)"); + // init_error_ = "Failed to validate device layers"; + // return; } }