diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-02-20 10:37:53 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-02-21 09:15:10 +0100 |
commit | 79b605d285d006ff7434fc813effa3479138b952 (patch) | |
tree | 86d531e745348a5216f05a0714955eba7b46398d /tests/manual | |
parent | efba2530f99ce5873bd3448b3e974cbda419f461 (diff) |
rhi: Fix building hellominimalcrossgfxtriangle on macOS
Change-Id: I55fa7d4d122750ca7ab90559026f4f4fcdf11663
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/rhi/hellominimalcrossgfxtriangle/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/rhi/hellominimalcrossgfxtriangle/window.cpp b/tests/manual/rhi/hellominimalcrossgfxtriangle/window.cpp index f3f00e0255..fc7bdff3de 100644 --- a/tests/manual/rhi/hellominimalcrossgfxtriangle/window.cpp +++ b/tests/manual/rhi/hellominimalcrossgfxtriangle/window.cpp @@ -167,7 +167,7 @@ void Window::init() #if defined(Q_OS_MACOS) || defined(Q_OS_IOS) if (m_graphicsApi == QRhi::Metal) { QRhiMetalInitParams params; - m_rhi = QRhi::create(QRhi::Metal, ¶ms, rhiFlags); + m_rhi.reset(QRhi::create(QRhi::Metal, ¶ms, rhiFlags)); } #endif |