kwin/plugins
David Edmundson 5bca058826 Fix DRM EGL crash regression
Summary:
In 47343fb we made GBM buffer shared.

What we wanted to do was:
Unbox the shared_pointer<GBMSurface> to give us a GBMSurface* object
Call the gbm_surface*() on that operator
Then cast that to a void* for eglCreatePlatformWindowSurfaceEXT

What we did:
Cast the std::shared_ptr<GBMSurface> to a gbm_surface*  then cast that
to void*.
This is just a garbage value and it crashes in Mesa when we do our first
paint.

I've replaced that with an explicit method then we can use shared_ptr's
-> operator rather than get() which does the right thing in a readable
way.

Test Plan:
It crashed after rebasing to master (for Aleix too)
No longer crashes

Reviewers: #plasma

Subscribers: plasma-devel, kwin, #kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D8251
2017-10-12 10:12:24 +02:00
..
idletime [wayland] Fix heap-use-after-free in idle time plugin 2016-02-02 12:00:12 +01:00
kdecorations SVN_SILENT made messages (.desktop file) - always resolve ours 2017-08-28 04:30:46 +02:00
kglobalaccel
platforms Fix DRM EGL crash regression 2017-10-12 10:12:24 +02:00
qpa [plugins/qpa] Drop unused variable AbstractPlatformContext::m_integration 2017-07-31 18:09:15 +02:00
scenes SVN_SILENT made messages (.desktop file) - always resolve ours 2017-09-16 06:53:13 +02:00
CMakeLists.txt Move SceneXRender into a plugin 2017-09-01 17:42:28 +02:00