diff --git a/src/backends/drm/virtual_egl_gbm_layer.cpp b/src/backends/drm/virtual_egl_gbm_layer.cpp index b8b3938eb7..2244e21bea 100644 --- a/src/backends/drm/virtual_egl_gbm_layer.cpp +++ b/src/backends/drm/virtual_egl_gbm_layer.cpp @@ -90,7 +90,7 @@ bool VirtualEglGbmLayer::endRendering(const QRegion &damagedRegion) m_currentBuffer = buffer; m_currentDamage = damagedRegion; } - return buffer; + return !buffer.isNull(); } QRegion VirtualEglGbmLayer::currentDamage() const