From 1f1b786a3628e43e6689f68e5f5dd8f5adfc355d Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Sun, 27 Feb 2022 21:13:02 +1100 Subject: Use VK_NULL_HANDLE when initializing XrSwapchainImageVulkanKHR --- modules/openxr/extensions/openxr_vulkan_extension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openxr/extensions/openxr_vulkan_extension.cpp b/modules/openxr/extensions/openxr_vulkan_extension.cpp index ba790500f9..a481c6f979 100644 --- a/modules/openxr/extensions/openxr_vulkan_extension.cpp +++ b/modules/openxr/extensions/openxr_vulkan_extension.cpp @@ -305,7 +305,7 @@ bool OpenXRVulkanExtension::get_swapchain_image_data(XrSwapchain p_swapchain, in for (uint64_t i = 0; i < swapchain_length; i++) { images[i].type = XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR; images[i].next = nullptr; - images[i].image = nullptr; + images[i].image = VK_NULL_HANDLE; } result = xrEnumerateSwapchainImages(p_swapchain, swapchain_length, &swapchain_length, (XrSwapchainImageBaseHeader *)images); -- cgit v1.2.3