[scene_qpainter] Add safety check in screenGeometryChanged

The buffer might be null, so better check for it.
This commit is contained in:
Martin Gräßlin 2014-08-18 20:07:15 +02:00
parent bd5fe4f785
commit 5f439cea99

View file

@ -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;
}