Merge pull request #58589 from BastiaanOlij/vulkan_openxr_use_proper_handle

Use VK_NULL_HANDLE when initializing XrSwapchainImageVulkanKHR
This commit is contained in:
Rémi Verschelde 2022-02-27 12:42:28 +01:00 committed by GitHub
commit ff877adf0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);