diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2021-10-18 14:30:15 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2021-10-19 13:13:14 -0700 |
commit | 91534587314791f0d6ad7866308e0d22e2794fc9 (patch) | |
tree | a44e24c9abf29b7726955db202b099c5cc5ddbc3 /src/gui/rhi | |
parent | 056e807bb199d66989b92aef2de4334baf6a4817 (diff) |
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>
Diffstat (limited to 'src/gui/rhi')
-rw-r--r-- | src/gui/rhi/qrhivulkan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |