backends/wayland: Flush rendering commands in endFrame()

eglSwapBuffers() used to flush rendering commands but now that we render
to dmabufs, we need somehow to flush the rendering commands to the dmabuf.

It fixes some of the weird rendering issues that I see sometimes.
This commit is contained in:
Vlad Zahorodnii 2022-12-20 17:46:09 +02:00
parent 370808b9d2
commit ccf5623f34

View file

@ -205,6 +205,9 @@ std::optional<OutputLayerBeginFrameInfo> WaylandEglPrimaryLayer::beginFrame()
bool WaylandEglPrimaryLayer::endFrame(const QRegion &renderedRegion, const QRegion &damagedRegion)
{
// Flush rendering commands to the dmabuf.
glFlush();
m_damageJournal.add(damagedRegion);
return true;
}