summaryrefslogtreecommitdiff
path: root/modules/openxr/extensions
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2022-02-27 21:13:02 +1100
committerBastiaan Olij <mux213@gmail.com>2022-02-27 21:13:02 +1100
commit1f1b786a3628e43e6689f68e5f5dd8f5adfc355d (patch)
treeecff3f6c6f27e235c29915dfdd45cc2df7741167 /modules/openxr/extensions
parent234eb83dfec6daf3795e53236be7b408083f6a2d (diff)
Use VK_NULL_HANDLE when initializing XrSwapchainImageVulkanKHR
Diffstat (limited to 'modules/openxr/extensions')
-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);