diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-03-18 21:57:47 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-03-25 19:03:08 +0100 |
commit | 655ff8592be71b726f39d3b1a178c3ca57944715 (patch) | |
tree | 1627403b98e24632e7345b67d8efd87bb740ef48 /examples/quick | |
parent | 7ff6ebb7bdf0f8ceaad50948ceda50e728b5b9cd (diff) |
Use new Qt configure feature for Metal
Change-Id: I603018d3f4c6a49c39f7daed25101c24edbbfc02
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/quick')
-rw-r--r-- | examples/quick/rendercontrol/rendercontrol_rhi/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/rendercontrol/rendercontrol_rhi/main.cpp b/examples/quick/rendercontrol/rendercontrol_rhi/main.cpp index 8752ba1594..76f2ade0a9 100644 --- a/examples/quick/rendercontrol/rendercontrol_rhi/main.cpp +++ b/examples/quick/rendercontrol/rendercontrol_rhi/main.cpp @@ -576,7 +576,7 @@ int main(int argc, char **argv) apiList->addItem("Direct3D 12"); apiValues.append(QSGRendererInterface::Direct3D12); #endif -#if defined(Q_OS_MACOS) || defined(Q_OS_IOS) +#if QT_CONFIG(metal) apiList->addItem("Metal"); apiValues.append(QSGRendererInterface::Metal); #endif |