be really safe when creating swapchains

This commit is contained in:
Patrick Nicolas
2025-02-05 16:55:25 +01:00
parent bb6d6c578a
commit e85be69d2b
3 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -1071,7 +1071,8 @@ void scenes::stream::setup(const to_headset::video_stream_description & descript
void scenes::stream::setup_reprojection_swapchain()
{
std::unique_lock lock(decoder_mutex);
std::scoped_lock lock(application::instance().render_mutex, decoder_mutex);
device.waitIdle();
swapchains.clear();
const uint32_t video_width = video_stream_description->width / view_count;