[scene_qpainter] Add safety check in screenGeometryChanged
The buffer might be null, so better check for it.
This commit is contained in:
parent
bd5fe4f785
commit
5f439cea99
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue