mirror of https://github.com/auygun/kaliber.git
Fix for Vulkan renderer
Terminate the bg thread before destroying resources
This commit is contained in:
parent
3bc8785469
commit
00f57bab05
|
@ -987,13 +987,13 @@ void RendererVulkan::Shutdown() {
|
|||
return;
|
||||
|
||||
LOG << "Shutting down renderer.";
|
||||
DestroyAllResources();
|
||||
context_lost_ = true;
|
||||
|
||||
quit_.store(true, std::memory_order_relaxed);
|
||||
semaphore_.release();
|
||||
setup_thread_.join();
|
||||
|
||||
DestroyAllResources();
|
||||
context_lost_ = true;
|
||||
|
||||
vkDeviceWaitIdle(device_);
|
||||
|
||||
for (size_t i = 0; i < frames_.size(); ++i) {
|
||||
|
|
Loading…
Reference in New Issue