From e090853ad598aa4f39304d69ec29b80fc3fceb62 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 3 Jul 2023 15:36:07 +0200 Subject: [PATCH] rhi: metal: Fix external MTLDevice import Pick-to: 6.6 6.5 6.2 Fixes: QTBUG-115002 Change-Id: I57c12685f8451420c30c65a1a25064607b52e31c Reviewed-by: Qt CI Bot Reviewed-by: Andy Nichols --- src/gui/rhi/qrhimetal.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/rhi/qrhimetal.mm b/src/gui/rhi/qrhimetal.mm index 345494c9f6..d9a2649451 100644 --- a/src/gui/rhi/qrhimetal.mm +++ b/src/gui/rhi/qrhimetal.mm @@ -462,7 +462,7 @@ QRhiMetal::QRhiMetal(QRhiMetalInitParams *params, QRhiMetalNativeHandles *import importedDevice = importDevice != nullptr; if (importedDevice) { - if (d->dev) { + if (importDevice->dev) { d->dev = (id) importDevice->dev; importedCmdQueue = importDevice->cmdQueue != nullptr; if (importedCmdQueue)