mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 13:05:47 +00:00
Check device idle result during FrameGen teardown
This commit is contained in:
1 parent
a9a92dfea0
commit
30e5c27b11
1 file changed
+3
-1
@@ -227,7 +227,9 @@ void FrameGen::initializeImage(VkCommandBuffer cmd, VkImage img, VkImageLayout t
|
||||
|
||||
void FrameGen::destroy() {
|
||||
if (!device_) return;
|
||||
dd_->DeviceWaitIdle(device_);
|
||||
const VkResult idleResult = dd_->DeviceWaitIdle(device_);
|
||||
if (idleResult != VK_SUCCESS)
|
||||
DDFG_LOGE("framegen destroy: DeviceWaitIdle failed (%d); continuing teardown", (int)idleResult);
|
||||
destroyScratchResources();
|
||||
for (auto& i : pyrA_) destroyImage(i); pyrA_.clear();
|
||||
for (auto& i : pyrB_) destroyImage(i); pyrB_.clear();
|
||||
|
||||
Reference in new issue
Block a user