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:
parent
370808b9d2
commit
ccf5623f34
1 changed files with 3 additions and 0 deletions
|
@ -205,6 +205,9 @@ std::optional<OutputLayerBeginFrameInfo> WaylandEglPrimaryLayer::beginFrame()
|
||||||
|
|
||||||
bool WaylandEglPrimaryLayer::endFrame(const QRegion &renderedRegion, const QRegion &damagedRegion)
|
bool WaylandEglPrimaryLayer::endFrame(const QRegion &renderedRegion, const QRegion &damagedRegion)
|
||||||
{
|
{
|
||||||
|
// Flush rendering commands to the dmabuf.
|
||||||
|
glFlush();
|
||||||
|
|
||||||
m_damageJournal.add(damagedRegion);
|
m_damageJournal.add(damagedRegion);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue