Fix flickering screen after disconnect

Deleting the stream object has to be delayed until all Vulkan work is
done.
This commit is contained in:
Patrick Nicolas
2026-02-11 23:36:17 +01:00
parent 50ae773fec
commit 06d771b89e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -769,7 +769,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
last_display_time = frame_state.predictedDisplayTime;
std::shared_lock lock(decoder_mutex);
if (not frame_state.shouldRender or (decoders[0].empty() and decoders[1].empty()))
if (not frame_state.shouldRender or (decoders[0].empty() and decoders[1].empty()) or exiting)
{
// TODO: stop/restart video stream
session.begin_frame();