RHI: use the flags we've just calculated

Caught by clang 13 detecting we set a variable but never used it.

Change-Id: I8c6a0ff3ec184205a544fffd16af3d52b6f172a2
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Thiago Macieira 2021-10-18 14:30:15 -07:00
parent 056e807bb1
commit 9153458731

View File

@ -1689,7 +1689,7 @@ void QRhiVulkan::ensureCommandPoolForNewFrame()
flags |= VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT;
// put all command buffers allocated from this slot's pool to initial state
df->vkResetCommandPool(dev, cmdPool[currentFrameSlot], 0);
df->vkResetCommandPool(dev, cmdPool[currentFrameSlot], flags);
}
QRhi::FrameOpResult QRhiVulkan::beginFrame(QRhiSwapChain *swapChain, QRhi::BeginFrameFlags)