backends/virtual: Move glFlush() to endFrame()
It makes more sense in endFrame() rather than present().
This commit is contained in:
parent
ff53950a6d
commit
91bef430bf
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue