D15957: [plugins/qpa] Don't crash on Qt5.12 OpengGL::makeCurrent
David Edmundson <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <[email protected]> |
davidedmundson created this revision. davidedmundson added a reviewer: KWin. Herald added a project: KWin. Herald added a subscriber: kwin. davidedmundson requested review of this revision. REVISION SUMMARY QOpenGLContext was changed to call platform->makeCurrent before it called setCurrentContext. Because we bind window FBO and ultimately that calls QOpenGlContext::format we need Qt to know which context is current so it can tell us the format. This matches the QtWayland EGL code. BUG: 399392 TEST PLAN Switched virtual desktop with the OSD (previously reliably crashed) Now it doesn't REPOSITORY R108 KWin BRANCH master REVISION DETAIL https://phabricator.kde.org/D15957 AFFECTED FILES plugins/qpa/sharingplatformcontext.cpp To: davidedmundson, #kwin Cc: kwin, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart