release swapchain image when done submitting commands
This commit is contained in:
@@ -458,7 +458,6 @@ void imgui_context::new_frame(XrTime display_time)
|
||||
XrCompositionLayerQuad imgui_context::end_frame()
|
||||
{
|
||||
vk::Image destination = swapchain.images()[image_index].image;
|
||||
swapchain.release();
|
||||
|
||||
ImGui::SetCurrentContext(context);
|
||||
ImPlot::SetCurrentContext(plot_context);
|
||||
@@ -500,6 +499,8 @@ XrCompositionLayerQuad imgui_context::end_frame()
|
||||
.pCommandBuffers = &*cb,
|
||||
}, *fence);
|
||||
|
||||
swapchain.release();
|
||||
|
||||
return XrCompositionLayerQuad{
|
||||
.type = XR_TYPE_COMPOSITION_LAYER_QUAD,
|
||||
.layerFlags = XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT,
|
||||
|
||||
Reference in New Issue
Block a user