diff --git a/src/protocols/core/Compositor.cpp b/src/protocols/core/Compositor.cpp index 9f3a54076..10245982e 100644 --- a/src/protocols/core/Compositor.cpp +++ b/src/protocols/core/Compositor.cpp @@ -128,6 +128,13 @@ CWLSurfaceResource::CWLSurfaceResource(SP resource_) : m_resource(re (!m_pending.buffer && !m_pending.texture) // null buffer attached ) { commitState(m_pending); + + if (!m_pending.buffer && !m_pending.texture) { + // null buffer attached, remove any pending states. + while (!m_pendingStates.empty()) { + m_pendingStates.pop(); + } + } m_pending.reset(); return; }