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