Remove assert in Compositor::aboutToSwapBuffers()

The purpose of Compositor::aboutToSwapBuffers() is notify the compositor
about a pending buffer. It's totally safe to call it multiple times if you
have multiple outputs. Ideally, it should also take an AbstractOutput or
screen id, but with the introduction of render loops per each output, we
won't need Compositor::aboutToSwapBuffers(). So, for the time being, this
change drops the annoying assert to make necessary per screen rendering
related refactorings easier to perform.
This commit is contained in:
Vlad Zahorodnii 2020-11-11 10:55:05 +02:00
parent 755dd81e49
commit 81abc341d7

View file

@ -576,8 +576,6 @@ void Compositor::timerEvent(QTimerEvent *te)
void Compositor::aboutToSwapBuffers()
{
Q_ASSERT(!m_bufferSwapPending);
m_bufferSwapPending = true;
}