summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYAMAMOTO Atsushi <atsushi.yamamoto@signal-slot.co.jp>2022-06-24 10:56:32 +0900
committerYAMAMOTO Atsushi - Signal Slot <atsushi.yamamoto@signal-slot.co.jp>2022-06-24 09:16:56 +0000
commit489df1a7e1f1fb692b5ea745fa3c10d5f7296006 (patch)
tree38c8daa26df6f2f91b1c589944a9f504150666b8
parent0300d6336fec0c2fabeb05423a4d8fd83f6777ef (diff)
Remove unused local variable
The local variable image is unused and has a duplicate name with the variable in the next lower scope. Pick-to: 6.2 6.3 6.4 Change-Id: I2154042e8737b4dc53f2d4b3b47dd9ed292b9dec Reviewed-by: Mike Krus <mike.krus@kdab.com>
-rw-r--r--src/plugins/renderers/rhi/renderer/renderer.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/renderers/rhi/renderer/renderer.cpp b/src/plugins/renderers/rhi/renderer/renderer.cpp
index 08822e371..65128a454 100644
--- a/src/plugins/renderers/rhi/renderer/renderer.cpp
+++ b/src/plugins/renderers/rhi/renderer/renderer.cpp
@@ -2738,7 +2738,6 @@ bool Renderer::executeCommandsSubmission(const RHIPassInfo &passInfo)
QRect rect(QPoint(0, 0), size);
if (!request.rect.isEmpty())
rect = rect.intersected(request.rect);
- QImage image;
if (!rect.isEmpty()) {
// Bind fbo as read framebuffer
QRhiReadbackResult *readBackResult = new QRhiReadbackResult;