From 7c1e2072f5e491b30ecf09f7cf400c22fe52fdb2 Mon Sep 17 00:00:00 2001 From: Alexei Cazacov Date: Mon, 12 Aug 2024 10:07:11 +0300 Subject: [PATCH] Docs: Fix a typo in QRhiTextureRenderTargetDescription Fixes: QTBUG-127403 Pick-to: 6.7 Change-Id: I089896e6abdd095057218adfd63727e65f4d92df Reviewed-by: Laszlo Agocs (cherry picked from commit 934ff5afb533c78f06baad830066473174d2de3c) 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 39294d4a866..0ab79a11b2d 100644 --- a/src/gui/rhi/qrhi.cpp +++ b/src/gui/rhi/qrhi.cpp @@ -2530,7 +2530,7 @@ QRhiColorAttachment::QRhiColorAttachment(QRhiRenderBuffer *renderBuffer) renderbuffer as depth/stencil to enable depth testing: \code - QRhiTexture *texture = rhi->newTexture(QRhiTexture::RGBA8, QSize(512, 512), 1. QRhiTexture::RenderTarget); + QRhiTexture *texture = rhi->newTexture(QRhiTexture::RGBA8, QSize(512, 512), 1, QRhiTexture::RenderTarget); texture->create(); QRhiRenderBuffer *depthStencil = rhi->newRenderBuffer(QRhiRenderBuffer::DepthStencil, QSize(512, 512)); depthStencil->create();