Skip to content
  • David Edmundson's avatar
    [plugins/qpa] Don't crash on Qt5.12 OpengGL::makeCurrent · 6ebfa593
    David Edmundson authored
    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
    
    Reviewers: #kwin, zzag
    
    Reviewed By: #kwin, zzag
    
    Subscribers: zzag, kwin
    
    Tags: #kwin
    
    Differential Revision: https://phabricator.kde.org/D15957
    6ebfa593