diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-10-15 10:46:26 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-10-16 18:43:16 +0200 |
commit | 53f9768e6424f7b00946005f82f11d82facee35a (patch) | |
tree | eb3a0332ea82360f292b4127677479539e45fa6d /src/gui/painting | |
parent | a031a2507fb5ad243a43722bc95b614267955cc3 (diff) |
Sync also the profile env.var between Quick and RHI backingstores
Amends ffb857e9d0745fdd31bca091333f1120c5857d7b.
Pick-to: 6.6 6.5
Task-number: QTBUG-118116
Change-Id: Ifb55130fd66b8ea1446363ae22f11cfe4f4d48bb
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qbackingstorerhisupport.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/painting/qbackingstorerhisupport.cpp b/src/gui/painting/qbackingstorerhisupport.cpp index 77240f0f92..e068f1880d 100644 --- a/src/gui/painting/qbackingstorerhisupport.cpp +++ b/src/gui/painting/qbackingstorerhisupport.cpp @@ -56,10 +56,13 @@ bool QBackingStoreRhiSupport::create() QOffscreenSurface *surface = nullptr; QRhi::Flags flags; - // This must be the same env.var. Qt Quick uses, to ensure symmetry in the - // behavior between a QQuickWindow and a (QRhi-based) widget top-level window. + // These must be the same env.vars Qt Quick uses (as documented), in order + // to ensure symmetry in the behavior between a QQuickWindow and a + // (QRhi-based) widget top-level window. if (qEnvironmentVariableIntValue("QSG_RHI_PREFER_SOFTWARE_RENDERER")) flags |= QRhi::PreferSoftwareRenderer; + if (qEnvironmentVariableIntValue("QSG_RHI_PROFILE")) + flags |= QRhi::EnableDebugMarkers | QRhi::EnableTimestamps; if (m_config.api() == QPlatformBackingStoreRhiConfig::Null) { QRhiNullInitParams params; |