aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-10-08 21:00:02 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-10-09 12:05:30 +0200
commitdc26a53b8c89f5cddfd2e9a899534be355ba9183 (patch)
treeb5b7fbd489fb15a1e4fd6e2a673b2ec1e1787e84 /examples
parent63cff8ad6b385ed990e54693d22df7787c72e7bf (diff)
examples/gui/rhiwindow: Fix syntax error handling the --metal option
Fixes: PYSIDE-3208 Pick-to: 6.10 6.8 Change-Id: I9efd58bb58669acc644d9029c169eac6d34dbcf7 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/gui/rhiwindow/rhiwindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gui/rhiwindow/rhiwindow.py b/examples/gui/rhiwindow/rhiwindow.py
index d4522e512..e9b6c1d15 100644
--- a/examples/gui/rhiwindow/rhiwindow.py
+++ b/examples/gui/rhiwindow/rhiwindow.py
@@ -176,7 +176,7 @@ class RhiWindow(QWindow):
self.m_rhi = QRhi.create(QRhi.Implementation.D3D12, params)
elif self.m_graphicsApi == QRhi.Implementation.Metal:
params = QRhiMetalInitParams()
- self.m_rhi.reset(QRhi.create(QRhi.Implementation.Metal, params))
+ self.m_rhi = QRhi.create(QRhi.Implementation.Metal, params)
if not self.m_rhi:
qFatal("Failed to create RHI backend")