diff --git a/plugins/platforms/wayland/egl_wayland_backend.cpp b/plugins/platforms/wayland/egl_wayland_backend.cpp index 814be5ee04..90e35ba253 100644 --- a/plugins/platforms/wayland/egl_wayland_backend.cpp +++ b/plugins/platforms/wayland/egl_wayland_backend.cpp @@ -378,22 +378,6 @@ void EglWaylandBackend::endFrame(int screenId, const QRegion &renderedRegion, co { EglWaylandOutput *output = m_outputs[screenId]; QRegion damage = damagedRegion.intersected(output->m_waylandOutput->geometry()); - if (damage.isEmpty()) { - - // If the damaged region of a window is fully occluded, the only - // rendering done, if any, will have been to repair a reused back - // buffer, making it identical to the front buffer. - // - // In this case we won't post the back buffer. Instead we'll just - // set the buffer age to 1, so the repaired regions won't be - // rendered again in the next frame. - if (!renderedRegion.intersected(output->m_waylandOutput->geometry()).isEmpty()) { - glFlush(); - } - - output->m_bufferAge = 1; - return; - } presentOnSurface(output, damage); if (supportsBufferAge()) {