Right test in SystemInfo constructor

This commit is contained in:
Yves BOYAdjian 2021-06-04 20:11:45 +02:00 committed by Charles Giessen
parent bae94d9f47
commit a014a5a030

View File

@ -541,7 +541,7 @@ SystemInfo::SystemInfo() {
auto layer_extensions_ret = detail::get_vector<VkExtensionProperties>(layer_extensions, auto layer_extensions_ret = detail::get_vector<VkExtensionProperties>(layer_extensions,
detail::vulkan_functions().fp_vkEnumerateInstanceExtensionProperties, detail::vulkan_functions().fp_vkEnumerateInstanceExtensionProperties,
layer.layerName); layer.layerName);
if (layer_extensions_ret != VK_SUCCESS) { if (layer_extensions_ret == VK_SUCCESS) {
for (auto& ext : layer_extensions) for (auto& ext : layer_extensions)
if (strcmp(ext.extensionName, VK_EXT_DEBUG_UTILS_EXTENSION_NAME) == 0) if (strcmp(ext.extensionName, VK_EXT_DEBUG_UTILS_EXTENSION_NAME) == 0)
debug_utils_available = true; debug_utils_available = true;