Revert "Remove buffer flip pending assert for now"

This reverts commit af3fbf343b.

See: https://mail.kde.org/pipermail/kwin/2020-January/002999.html
master
Roman Gilg 2020-01-09 18:05:33 +01:00
parent bfc6361f15
commit 396ef7100e
1 changed files with 1 additions and 3 deletions

View File

@ -689,11 +689,9 @@ void Compositor::performCompositing()
// Start the actual painting process.
m_timerOffset = m_scene->paint(repaints, windows) / 1000 / 1000;
// TODO: This assert is still not always true for some reason. Happens on X11 and Wayland (see
// also BUG 415750).
// Either the backend will provide a swap event and a buffer swap is pending now or there is no
// pending buffer swap and by that no swap event received later on for the current paint call.
// Q_ASSERT(m_scene->hasSwapEvent() ^ !m_bufferSwapPending);
Q_ASSERT(m_scene->hasSwapEvent() ^ !m_bufferSwapPending);
if (m_framesToTestForSafety > 0) {
if (m_scene->compositingType() & OpenGLCompositing) {