From 1753a8bc87631644fe22dcfe54c5c0df7b2d7dd1 Mon Sep 17 00:00:00 2001 From: Gonzalo Pesquero Date: Mon, 17 Feb 2025 23:58:17 +0100 Subject: [PATCH] [drape] Remove Vulkan warnings Signed-off-by: Gonzalo Pesquero --- drape/vulkan/vulkan_context_factory.cpp | 6 +++--- drape/vulkan/vulkan_utils.cpp | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) 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)); }