Sync also the profile env.var between Quick and RHI backingstores
Amends ffb857e9d0.
Pick-to: 6.6 6.5
Task-number: QTBUG-118116
Change-Id: Ifb55130fd66b8ea1446363ae22f11cfe4f4d48bb
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
bb10
parent
a031a2507f
commit
53f9768e64
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue