diff --git a/plugins/qpa/window.cpp b/plugins/qpa/window.cpp index e969577194..93e6d7fee8 100644 --- a/plugins/qpa/window.cpp +++ b/plugins/qpa/window.cpp @@ -151,6 +151,9 @@ QSharedPointer Window::swapFBO() void Window::createFBO() { const QRect &r = geometry(); + if (m_contentFBO && r.size().isEmpty()) { + return; + } m_contentFBO.reset(new QOpenGLFramebufferObject(r.width(), r.height(), QOpenGLFramebufferObject::CombinedDepthStencil)); if (!m_contentFBO->isValid()) { qCWarning(KWIN_QPA) << "Content FBO is not valid";