backends/virtual: Move glFlush() to endFrame()

It makes more sense in endFrame() rather than present().
This commit is contained in:
Vlad Zahorodnii 2023-01-10 14:58:57 +02:00
parent ff53950a6d
commit 91bef430bf

View file

@ -56,6 +56,7 @@ std::optional<OutputLayerBeginFrameInfo> 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<VirtualOutput *>(output)->vsyncMonitor()->arm();
}