Fixing incorrect swapchain release timing

Applied a couple of checks suggested by @dhoverml for when the
XrResult is not XR_SUCCESS but is also not a failure. Also simplified
checks from @BastiaanOlij feedback.
This commit is contained in:
Daniel Castellanos
2023-10-03 16:07:45 -06:00
parent f5696c311c
commit 771ec958af
2 changed files with 37 additions and 11 deletions

View File

@ -139,6 +139,7 @@ private:
void *swapchain_graphics_data = nullptr;
uint32_t image_index = 0;
bool image_acquired = false;
bool skip_acquire_swapchain = false;
};
OpenXRSwapChainInfo swapchains[OPENXR_SWAPCHAIN_MAX];