diff --git a/scene_qpainter.cpp b/scene_qpainter.cpp index 551ab58dc0..0096ca8811 100644 --- a/scene_qpainter.cpp +++ b/scene_qpainter.cpp @@ -152,6 +152,9 @@ void WaylandQPainterBackend::lastFrameRendered() void WaylandQPainterBackend::screenGeometryChanged(const QSize &size) { Q_UNUSED(size) + if (!m_buffer) { + return; + } m_buffer->setUsed(false); m_buffer = NULL; }