Permalink
Browse files

Vulkan debug mode: In case of missing validation layers, warn, don't …

…error out.
  • Loading branch information...
hrydgard committed Jul 13, 2017
1 parent 2d5e7c8 commit 033676ca4df4c4756be043062641bdb433cb64aa
Showing with 6 additions and 6 deletions.
  1. +6 −6 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;
}
}

0 comments on commit 033676c

Please sign in to comment.