Bug 1961724 [Linux] Flush GL rendering at NativeLayerWaylandRender::NotifySurfaceReady() as we need to have complete GL rendering for wl_buffer export r=gw

Differential Revision: https://phabricator.services.mozilla.com/D248989
This commit is contained in:
stransky
2025-05-14 05:52:55 +00:00
committed by stransky@redhat.com
parent 3279c59ebc
commit 5518711d74

View File

@@ -987,6 +987,9 @@ void NativeLayerWaylandRender::NotifySurfaceReady() {
MOZ_DIAGNOSTIC_ASSERT(!mFrontBuffer);
MOZ_DIAGNOSTIC_ASSERT(mInProgressBuffer);
mFrontBuffer = std::move(mInProgressBuffer);
if (mSurfacePoolHandle->gl()) {
mSurfacePoolHandle->gl()->FlushIfHeavyGLCallsSinceLastFlush();
}
}
void NativeLayerWaylandRender::DiscardBackbuffersLocked(