diff --git a/lib/ivis_opengl/gfx_api_vk.cpp b/lib/ivis_opengl/gfx_api_vk.cpp index 302821c9e4d..084bba94423 100644 --- a/lib/ivis_opengl/gfx_api_vk.cpp +++ b/lib/ivis_opengl/gfx_api_vk.cpp @@ -320,7 +320,7 @@ std::vector findSupportedDeviceExtensions(const vk::PhysicalDevice std::unordered_set supportedExtensionNames; for (auto & extension : availableExtensions) { - supportedExtensionNames.insert(extension.extensionName); + supportedExtensionNames.insert(std::string(extension.extensionName.data())); } std::vector foundExtensions; @@ -348,7 +348,11 @@ bool checkDeviceExtensionSupport(const vk::PhysicalDevice &device, const std::ve for (const auto& extension : availableExtensions) { - requiredExtensions.erase(extension.extensionName); + auto extensionName = std::string(extension.extensionName.data()); + if (requiredExtensions.erase(extensionName) > 0) + { + debug(LOG_3D, "Found extension: \"%s\"", extensionName.c_str()); + } } debug(LOG_3D, "Found %zu extensions / did not find %zu extensions, in the enumerated list of %zu device extensions", desiredExtensions.size() - requiredExtensions.size(), requiredExtensions.size(), availableExtensions.size());