diff options
author | Laszlo Agocs <[email protected]> | 2023-07-19 11:24:37 +0200 |
---|---|---|
committer | Laszlo Agocs <[email protected]> | 2023-07-31 12:38:41 +0200 |
commit | cdae120f7f23fefcb4adbc34c6f082c60faa2952 (patch) | |
tree | 33d9e820eab01b7083ea62947893b4a31c88025a | |
parent | d907f1aa92dbd4500a18db2c2492491c34c66087 (diff) |
Handle Null rhi backend in backingstore
Was missing for some reason when this got added in 6.4.
Pick-to: 6.6 6.5
Change-Id: I4f8b780c7119649688d8d8a197e8ef59730b0b61
Reviewed-by: Andy Nichols <[email protected]>
-rw-r--r-- | src/gui/painting/qbackingstorerhisupport.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/painting/qbackingstorerhisupport.cpp b/src/gui/painting/qbackingstorerhisupport.cpp index 15fea26d16d..d811abf648e 100644 --- a/src/gui/painting/qbackingstorerhisupport.cpp +++ b/src/gui/painting/qbackingstorerhisupport.cpp @@ -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); |