summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-27 12:42:28 +0100
committerGitHub <noreply@github.com>2022-02-27 12:42:28 +0100
commitff877adf0f6a9f2073e95d6fd6c59515b9e90cd2 (patch)
treeecff3f6c6f27e235c29915dfdd45cc2df7741167
parent234eb83dfec6daf3795e53236be7b408083f6a2d (diff)
parent1f1b786a3628e43e6689f68e5f5dd8f5adfc355d (diff)
Merge pull request #58589 from BastiaanOlij/vulkan_openxr_use_proper_handle
Use VK_NULL_HANDLE when initializing XrSwapchainImageVulkanKHR
-rw-r--r--modules/openxr/extensions/openxr_vulkan_extension.cpp2
1 files changed, 1 insertions, 1 deletions
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);