diff options
Diffstat (limited to 'src/quick/scenegraph/qsgrhisupport.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgrhisupport.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/quick/scenegraph/qsgrhisupport.cpp b/src/quick/scenegraph/qsgrhisupport.cpp index fe3b626077..22a1827f72 100644 --- a/src/quick/scenegraph/qsgrhisupport.cpp +++ b/src/quick/scenegraph/qsgrhisupport.cpp @@ -177,14 +177,17 @@ void QSGRhiSupport::applySettings() m_rhiBackend = QRhi::OpenGLES2; #endif // Vulkan has to be requested explicitly + + // Now that we established our initial choice, we may want to opt + // for another backend under certain special circumstances. + if (m_enableRhi) // guard because this may do actual graphics calls on some platforms + adjustToPlatformQuirks(); } } if (!m_enableRhi) return; - adjustToPlatformQuirks(); - // 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 // (QQuickWindow) may depend on the graphics API as well (surfaceType |