vk_texture_mailbox: Fix shutdown

This commit is contained in:
GPUCode
2023-03-05 14:12:29 +02:00
parent d054eea0c4
commit 3b050668bb

View File

@@ -62,6 +62,9 @@ private:
std::unique_lock lock{mutex};
if (queue.empty()) {
Common::CondvarWait(cv, lock, token, [this] { return !queue.empty(); });
if (token.stop_requested()) {
return nullptr;
}
}
Frame* frame = queue.front();
queue.pop();