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:
@ -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];
|
||||
|
||||
Reference in New Issue
Block a user