Skip to content

Commit

Permalink
Vulkan debug mode: In case of missing validation layers, warn, don't …
Browse files Browse the repository at this point in the history
…error out.
  • Loading branch information
hrydgard committed Jul 13, 2017
1 parent 2d5e7c8 commit 033676c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Common/Vulkan/VulkanContext.cpp
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 033676c

Please sign in to comment.