From 93136f7c55e545598a10e617f4951094bdbca9ff 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.8 6.7 Change-Id: Iec370f5f4b2c9cc74f8ff96b8d5a027be79e8817 Reviewed-by: Laszlo Agocs --- 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 ae63bf09bb7..8a4c39df996 100644 --- a/src/gui/rhi/qrhi.cpp +++ b/src/gui/rhi/qrhi.cpp @@ -9547,7 +9547,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.