From 1c9769676a5ec77337d52e103051d3686faa4d38 Mon Sep 17 00:00:00 2001 From: danwillm <39023874+danwillm@users.noreply.github.com> Date: Fri, 20 Dec 2024 09:48:39 -0800 Subject: [PATCH] tests/hello_xr: Fix warnings --- src/tests/hello_xr/graphicsplugin_vulkan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/hello_xr/graphicsplugin_vulkan.cpp b/src/tests/hello_xr/graphicsplugin_vulkan.cpp index f120a8b57..bfbbefe25 100644 --- a/src/tests/hello_xr/graphicsplugin_vulkan.cpp +++ b/src/tests/hello_xr/graphicsplugin_vulkan.cpp @@ -1886,7 +1886,7 @@ struct VulkanGraphicsPluginLegacy : public VulkanGraphicsPlugin { extensions.push_back(createInfo->vulkanCreateInfo->ppEnabledExtensionNames[i]); } LogVulkanExtensions("Vulkan Instance Extensions, requested by application", extensions, - extensions.size() - createInfo->vulkanCreateInfo->enabledExtensionCount); + (uint32_t)extensions.size() - createInfo->vulkanCreateInfo->enabledExtensionCount); VkInstanceCreateInfo instInfo{VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO}; memcpy(&instInfo, createInfo->vulkanCreateInfo, sizeof(instInfo)); @@ -1927,7 +1927,7 @@ struct VulkanGraphicsPluginLegacy : public VulkanGraphicsPlugin { extensions.push_back(createInfo->vulkanCreateInfo->ppEnabledExtensionNames[i]); } LogVulkanExtensions("Vulkan Device Extensions, requested by application", extensions, - extensions.size() - createInfo->vulkanCreateInfo->enabledExtensionCount); + (uint32_t)extensions.size() - createInfo->vulkanCreateInfo->enabledExtensionCount); VkPhysicalDeviceFeatures features{}; memcpy(&features, createInfo->vulkanCreateInfo->pEnabledFeatures, sizeof(features));