From c60505140d170b6fa1f6684463a15fb5b4529e44 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Wed, 2 Oct 2024 13:15:29 +0200 Subject: [PATCH] Fix typo in rhi doc snippet Change-Id: I51ca55edf328a56154ab6420674755db94da5b7d Reviewed-by: Eskil Abrahamsen Blomfeldt (cherry picked from commit 9b9b3cdf36ad61c835059f0bf3cb47b8909ffe86) 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 bccd1e88d19..329884b58a7 100644 --- a/src/gui/rhi/qrhi.cpp +++ b/src/gui/rhi/qrhi.cpp @@ -5134,7 +5134,7 @@ QRhiResource::Type QRhiSwapChainRenderTarget::resourceType() const texture->create(); QRhiTextureRenderTarget *rt = rhi->newTextureRenderTarget({ texture }); rp = rt->newCompatibleRenderPassDescriptor(); - rt->setRenderPassDescriptor(rt); + rt->setRenderPassDescriptor(rp); rt->create(); // rt can now be used with beginPass() \endcode