kcm_opengl: Fix EGL info retrieval.
ClosedPublic

Authored by roberts on Apr 22 2018, 6:09 PM.

Details

Summary

Under certain contexts (tested with Mesa 18.0.1 + AMDGPU) eglMakeCurrent()
fails with EGL_BAD_ACCESS. At this point the KCM gives up on EGL info
retrieval. This seems to be caused - correctly or otherwise - by a dangling
glX context. Explictly setting no glX context current at cleanup fixes the
issue.

Test Plan

kcmshell5 opengl should correctly display EGL information.

Diff Detail

Repository
R102 KInfoCenter
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
roberts created this revision.Apr 22 2018, 6:09 PM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 22 2018, 6:09 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
roberts requested review of this revision.Apr 22 2018, 6:09 PM
davidedmundson accepted this revision.Apr 22 2018, 6:33 PM
This revision is now accepted and ready to land.Apr 22 2018, 6:33 PM
graesslin accepted this revision.Apr 22 2018, 6:49 PM
This revision was automatically updated to reflect the committed changes.
fvogt added a subscriber: fvogt.Apr 23 2018, 7:05 PM

What about Plasma/5.12?