From 91534587314791f0d6ad7866308e0d22e2794fc9 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 18 Oct 2021 14:30:15 -0700 Subject: [PATCH] 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 --- src/gui/rhi/qrhivulkan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/rhi/qrhivulkan.cpp b/src/gui/rhi/qrhivulkan.cpp index d206263c5f..42d6f7e6ec 100644 --- a/src/gui/rhi/qrhivulkan.cpp +++ b/src/gui/rhi/qrhivulkan.cpp @@ -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)