diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 38fc53ed15..239a585cc5 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -1646,7 +1646,8 @@ void SceneOpenGL2Window::performPaint(int mask, QRegion region, WindowPaintData setBlendEnabled(false); // render sub-surfaces - const auto &children = windowPixmap()->children(); + auto wp = windowPixmap(); + const auto &children = wp ? wp->children() : QVector(); windowMatrix.translate(toplevel->clientPos().x(), toplevel->clientPos().y()); for (auto pixmap : children) { if (pixmap->subSurface().isNull() || pixmap->subSurface()->surface().isNull() || !pixmap->subSurface()->surface()->isMapped()) {