Fix typo in rhi doc snippet
Pick-to: 6.8 Change-Id: I51ca55edf328a56154ab6420674755db94da5b7d Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
8230c7d7af
commit
9b9b3cdf36
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user