allow vulkan validation layers in release builds if explicity asked for

This commit is contained in:
Jordan Schidlowsky
2020-11-18 12:01:41 -06:00
parent 9a3d3df0e2
commit e9527d0353
3 changed files with 3 additions and 4 deletions

View File

@@ -302,7 +302,7 @@ Error VulkanContext::_create_physical_device() {
/*flags*/ 0,
/*pApplicationInfo*/ &app,
/*enabledLayerCount*/ enabled_layer_count,
/*ppEnabledLayerNames*/ (const char *const *)instance_validation_layers,
/*ppEnabledLayerNames*/ (const char *const *)enabled_layers,
/*enabledExtensionCount*/ enabled_extension_count,
/*ppEnabledExtensionNames*/ (const char *const *)extension_names,
};