Add missing repaintManager check
This is likely a problem only after the 6.4 changes to move QQuickWidget composition from OpenGL to QRhi. Add an extra check to the condition when bailing out. In QWidgetPrivate (qwidget.cpp) all similar calls into the repaintManager are guarded by if (tlwExtra && tlwExtra->backingStore && tlwExtra->repaintManager) therefore it makes sense to perform the same check in the other file too. The assumption is that the check was not added here due to being outside of qwidget.cpp. Change-Id: Ic94d4e5153f4a194a997cd669b0f7c48c7932d97 Fixes: QTBUG-107166 Pick-to: 6.4 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>bb10
parent
6e288701e8
commit
2d381001da
|
|
@ -126,7 +126,7 @@ void QWidgetPrivate::invalidateBackingStore(const T &r)
|
|||
return;
|
||||
|
||||
QTLWExtra *tlwExtra = q->window()->d_func()->maybeTopData();
|
||||
if (!tlwExtra || !tlwExtra->backingStore)
|
||||
if (!tlwExtra || !tlwExtra->backingStore || !tlwExtra->repaintManager)
|
||||
return;
|
||||
|
||||
T clipped(r);
|
||||
|
|
|
|||
Loading…
Reference in New Issue