Handle Null rhi backend in backingstore
Was missing for some reason when this got added in 6.4. Change-Id: I4f8b780c7119649688d8d8a197e8ef59730b0b61 Reviewed-by: Andy Nichols <andy.nichols@qt.io> (cherry picked from commit cdae120f7f23fefcb4adbc34c6f082c60faa2952) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
226f84d5ac
commit
6843a4a69e
@ -56,6 +56,11 @@ bool QBackingStoreRhiSupport::create()
|
||||
QOffscreenSurface *surface = nullptr;
|
||||
QRhi::Flags flags;
|
||||
|
||||
if (m_config.api() == QPlatformBackingStoreRhiConfig::Null) {
|
||||
QRhiNullInitParams params;
|
||||
rhi = QRhi::create(QRhi::Null, ¶ms, flags);
|
||||
}
|
||||
|
||||
#if QT_CONFIG(opengl)
|
||||
if (!rhi && m_config.api() == QPlatformBackingStoreRhiConfig::OpenGL) {
|
||||
surface = QRhiGles2InitParams::newFallbackSurface(m_format);
|
||||
|
Loading…
x
Reference in New Issue
Block a user