rhi: Fix building hellominimalcrossgfxtriangle on macOS

Change-Id: I55fa7d4d122750ca7ab90559026f4f4fcdf11663
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
Laszlo Agocs 2020-02-20 10:37:53 +01:00
parent efba2530f9
commit 79b605d285

View File

@ -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, &params, rhiFlags);
m_rhi.reset(QRhi::create(QRhi::Metal, &params, rhiFlags));
}
#endif