kcm_opengl: Fix EGL info retrieval.

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

Description

kcm_opengl: Fix EGL info retrieval.

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.

Reviewers: Plasma, davidedmundson, graesslin

Reviewed By: Plasma, davidedmundson, graesslin

Subscribers: plasma-devel, Plasma

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D12455

Details

Committed
davidedmundsonApr 24 2018, 2:36 PM
Reviewer
Plasma
Differential Revision
D12455: kcm_opengl: Fix EGL info retrieval.
Parents
R102:d830659dbf65: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown