Fix the internal compositing flag for QOpenGL/QuickWidget
Compositing stays active for the window even when all such widgets get destroyed. Task-number: QTBUG-46937 Change-Id: Ib4acc90689151fd7de234806c4b5c0c472c13a5c Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>bb10
parent
cb05a4e8be
commit
56a4a34eb3
|
|
@ -74,7 +74,7 @@ void QWidgetBackingStore::qt_flush(QWidget *widget, const QRegion ®ion, QBack
|
|||
Q_UNUSED(widgetTextures);
|
||||
Q_ASSERT(!region.isEmpty());
|
||||
#else
|
||||
Q_ASSERT(!region.isEmpty() || (widgetTextures && widgetTextures->count()));
|
||||
Q_ASSERT(!region.isEmpty() || widgetTextures);
|
||||
#endif
|
||||
Q_ASSERT(widget);
|
||||
Q_ASSERT(backingStore);
|
||||
|
|
@ -1124,7 +1124,7 @@ void QWidgetBackingStore::doSync()
|
|||
widgetTextures = new QPlatformTextureList;
|
||||
findTextureWidgetsRecursively(tlw, tlw, widgetTextures);
|
||||
}
|
||||
qt_window_private(tlw->windowHandle())->compositing = widgetTextures && !widgetTextures->isEmpty();
|
||||
qt_window_private(tlw->windowHandle())->compositing = widgetTextures;
|
||||
fullUpdatePending = false;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue