From 934ff5afb533c78f06baad830066473174d2de3c 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.8 6.7 Change-Id: I089896e6abdd095057218adfd63727e65f4d92df 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 698b3bdeaa3..c97d029be9e 100644 --- a/src/gui/rhi/qrhi.cpp +++ b/src/gui/rhi/qrhi.cpp @@ -2568,7 +2568,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();