diff --git a/src/gui/rhi/qrhi.cpp b/src/gui/rhi/qrhi.cpp index 29977b04799..ae63bf09bb7 100644 --- a/src/gui/rhi/qrhi.cpp +++ b/src/gui/rhi/qrhi.cpp @@ -5349,7 +5349,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