aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgrhisupport.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-06-02 14:43:19 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-06-03 10:51:07 +0200
commite2c5ee11bcdc2f093004716f5e65e81cdce9ff85 (patch)
tree849033a602e28ca7b76a8d93f216a9f71ca8f926 /src/quick/scenegraph/qsgrhisupport.cpp
parentde4ea4ebefa5e779a4878a1e9bb05cf3ead58a9e (diff)
Remove QSG_NO_RHI
Task-number: QTBUG-79268 Change-Id: Ie7240fe7de4fcd73be65c8afec3466189d7d3f9a Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgrhisupport.cpp')
-rw-r--r--src/quick/scenegraph/qsgrhisupport.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/quick/scenegraph/qsgrhisupport.cpp b/src/quick/scenegraph/qsgrhisupport.cpp
index c8aa9ef24f..510f98ed6b 100644
--- a/src/quick/scenegraph/qsgrhisupport.cpp
+++ b/src/quick/scenegraph/qsgrhisupport.cpp
@@ -150,8 +150,8 @@ void QSGRhiSupport::applySettings()
}
} else {
- // New Qt 6 default: enable RHI, unless QSG_NO_RHI is set
- m_enableRhi = !qEnvironmentVariableIsSet("QSG_NO_RHI");
+ // There is no other way in Qt 6. The direct OpenGL rendering path of Qt 5 has been removed.
+ m_enableRhi = true;
// check env.vars., fall back to platform-specific defaults when backend is not set
const QByteArray rhiBackend = qgetenv("QSG_RHI_BACKEND");
@@ -189,8 +189,7 @@ void QSGRhiSupport::applySettings()
}
}
- if (!m_enableRhi)
- return;
+ Q_ASSERT(m_enableRhi); // cannot be anything else in Qt 6
// At this point the RHI backend is fixed, it cannot be changed once we
// return from this function. This is because things like the QWindow