Merge "BoxedHandleManager: fix corner case where there is no replay handles" into main
diff --git a/host/vulkan/VulkanBoxedHandles.cpp b/host/vulkan/VulkanBoxedHandles.cpp
index a7380cc..9ff8b47 100644
--- a/host/vulkan/VulkanBoxedHandles.cpp
+++ b/host/vulkan/VulkanBoxedHandles.cpp
@@ -50,11 +50,11 @@
} // namespace
void BoxedHandleManager::replayHandles(std::vector<BoxedHandle> handles) {
- mHandleReplay = true;
mHandleReplayQueue.clear();
for (BoxedHandle handle : handles) {
mHandleReplayQueue.push_back(handle);
}
+ mHandleReplay = !mHandleReplayQueue.empty();
}
void BoxedHandleManager::clear() {