rhi: Fix building hellominimalcrossgfxtriangle on macOS
Change-Id: I55fa7d4d122750ca7ab90559026f4f4fcdf11663 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
parent
efba2530f9
commit
79b605d285
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user