diff --git a/drape/vulkan/vulkan_context_factory.cpp b/drape/vulkan/vulkan_context_factory.cpp index d9ec0a3b0c..026544bc67 100644 --- a/drape/vulkan/vulkan_context_factory.cpp +++ b/drape/vulkan/vulkan_context_factory.cpp @@ -218,10 +218,10 @@ VulkanContextFactory::VulkanContextFactory(uint32_t appVersionCode, int sdkVersi if (!availableFeatures.wideLines) LOG(LWARNING, ("Widelines Vulkan feature is not supported.")); + VkPhysicalDeviceFeatures enabledFeatures; + enabledFeatures.wideLines = availableFeatures.wideLines; + VkDeviceCreateInfo deviceCreateInfo = {}; - VkPhysicalDeviceFeatures enabledFeatures = { - .wideLines = availableFeatures.wideLines, - }; deviceCreateInfo.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO; deviceCreateInfo.pNext = nullptr; deviceCreateInfo.queueCreateInfoCount = 1; diff --git a/drape/vulkan/vulkan_utils.cpp b/drape/vulkan/vulkan_utils.cpp index f32af92f3d..47acf6322e 100644 --- a/drape/vulkan/vulkan_utils.cpp +++ b/drape/vulkan/vulkan_utils.cpp @@ -31,12 +31,13 @@ void DebugName::Set(VkObjectType type, uint64_t handle, char const * name) { if (vkSetDebugUtilsObjectNameEXT == nullptr) return; - + VkDebugUtilsObjectNameInfoEXT const info = { .sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT, + .pNext = nullptr, .objectType = type, .objectHandle = handle, - .pObjectName = name, + .pObjectName = name }; CHECK_VK_CALL(vkSetDebugUtilsObjectNameEXT(m_device, &info)); }