Commit 24bc3fed authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

qpa: Fix a crash in EGLPlatformContext::swapBuffers()

After internalWindow->present() is called, we cannot guarantee that the
current opengl context hasn't changed. If kwin changes the current opengl
context, bindContextFBO() can crash because there may not be current
QOpenGLContext.

BUG: 455435
parent 34ce3dde
Pipeline #192157 failed with stage
in 29 minutes and 43 seconds
......@@ -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);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment