Handle rhi init failures better in rhi backingstore flush
One may very well force a 3D API not functional. In this case there will be no QRhi. A bunch of warnings will be printed (which is good), but then flush() should not do anything, and that was not handled before. Pick-to: 6.6 6.5 Change-Id: I82139070311152c959d39a553842f4462d8e7811 Reviewed-by: Andy Nichols <andy.nichols@qt.io>bb10
parent
e98ee5f6f4
commit
108b101441
|
|
@ -455,6 +455,9 @@ QPlatformBackingStore::FlushResult QBackingStoreDefaultCompositor::flush(QPlatfo
|
|||
QPlatformTextureList *textures,
|
||||
bool translucentBackground)
|
||||
{
|
||||
if (!rhi)
|
||||
return QPlatformBackingStore::FlushFailed;
|
||||
|
||||
Q_ASSERT(textures); // may be empty if there are no render-to-texture widgets at all, but null it cannot be
|
||||
|
||||
if (!m_rhi) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue