From 308181e87557c9ab1ee38286ed2d057d7eeb033e Mon Sep 17 00:00:00 2001 From: Andreas Eliasson Date: Wed, 9 Oct 2024 12:29:58 +0200 Subject: [PATCH] Doc: Fix link in note for QRhi::nextResourceUpdateBatch() The correct link should be QRhiResourceUpdateBatch::release(), not QRhiResourceUpdateBatch::destroy(). Fixes: QTBUG-127111 Pick-to: 6.7 Change-Id: Iec370f5f4b2c9cc74f8ff96b8d5a027be79e8817 Reviewed-by: Laszlo Agocs (cherry picked from commit 93136f7c55e545598a10e617f4951094bdbca9ff) Reviewed-by: Qt Cherry-pick Bot --- src/gui/rhi/qrhi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/rhi/qrhi.cpp b/src/gui/rhi/qrhi.cpp index 329884b58a7..bfcf2d99339 100644 --- a/src/gui/rhi/qrhi.cpp +++ b/src/gui/rhi/qrhi.cpp @@ -9285,7 +9285,7 @@ void QRhiResourceUpdateBatch::generateMips(QRhiTexture *tex) destroyed. Instead, the batch is returned the pool for reuse by passing it to QRhiCommandBuffer::beginPass(), QRhiCommandBuffer::endPass(), or QRhiCommandBuffer::resourceUpdate(), or by calling - QRhiResourceUpdateBatch::destroy() on it. + QRhiResourceUpdateBatch::release() on it. \note Can be called outside beginFrame() - endFrame() as well since a batch instance just collects data on its own, it does not perform any operations.