diff --git a/src/plugins/qpa/eglplatformcontext.cpp b/src/plugins/qpa/eglplatformcontext.cpp index c469c1ad81..5e890e6e98 100644 --- a/src/plugins/qpa/eglplatformcontext.cpp +++ b/src/plugins/qpa/eglplatformcontext.cpp @@ -120,8 +120,9 @@ void EGLPlatformContext::swapBuffers(QPlatformSurface *surface) } context()->makeCurrent(surface->surface()); glFlush(); - internalWindow->present(window->swapFBO()); + auto fbo = window->swapFBO(); window->bindContentFBO(); + internalWindow->present(fbo); } }