summaryrefslogtreecommitdiffstats
path: root/examples/vulkan/shared
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-05-22 10:15:34 +0200
committerMarc Mutz <marc.mutz@kdab.com>2017-05-22 09:23:15 +0000
commit5336e061ece349f5622548f2cbbd7f7d88574d33 (patch)
treebed0821174e4880ee88b9cb8c7a939933d13e42f /examples/vulkan/shared
parent85554be25fb0db4b26f8969c26d17e2a012b3780 (diff)
QVulkanWindow: return QMatrix4x4 by value
The function never returns nullptr, so return the matrix by value. Change-Id: I7c1eeb43b9693866049763565b575348ddd35548 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'examples/vulkan/shared')
-rw-r--r--examples/vulkan/shared/trianglerenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/vulkan/shared/trianglerenderer.cpp b/examples/vulkan/shared/trianglerenderer.cpp
index 7327c5a706..f346f90c89 100644
--- a/examples/vulkan/shared/trianglerenderer.cpp
+++ b/examples/vulkan/shared/trianglerenderer.cpp
@@ -393,7 +393,7 @@ void TriangleRenderer::initSwapChainResources()
qDebug("initSwapChainResources");
// Projection matrix
- m_proj = *m_window->clipCorrectionMatrix(); // adjust for Vulkan-OpenGL clip space differences
+ m_proj = m_window->clipCorrectionMatrix(); // adjust for Vulkan-OpenGL clip space differences
const QSize sz = m_window->swapChainImageSize();
m_proj.perspective(45.0f, sz.width() / (float) sz.height(), 0.01f, 100.0f);
m_proj.translate(0, 0, -4);