diff --git a/src/backends/virtual/virtual_egl_backend.cpp b/src/backends/virtual/virtual_egl_backend.cpp index 7c882caaa8..1215f6ff03 100644 --- a/src/backends/virtual/virtual_egl_backend.cpp +++ b/src/backends/virtual/virtual_egl_backend.cpp @@ -56,6 +56,7 @@ std::optional VirtualEglLayer::beginFrame() bool VirtualEglLayer::endFrame(const QRegion &renderedRegion, const QRegion &damagedRegion) { + glFlush(); // flush pending rendering commands. return true; } @@ -198,8 +199,6 @@ OutputLayer *VirtualEglBackend::primaryLayer(Output *output) void VirtualEglBackend::present(Output *output) { - glFlush(); - static_cast(output)->vsyncMonitor()->arm(); }