kwin/plugins/platforms
David Edmundson 3d619c995b 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-11 20:04:13 +02:00
..
drm Fix DRM EGL crash regression 2017-10-11 20:04:13 +02:00
fbdev Move QPainter compositor into plugin 2017-09-01 17:44:49 +02:00
hwcomposer Move SceneOpenGL into a dedicated plugin 2017-09-30 13:12:10 +02:00
virtual [platforms/virtual] Always link SceneOpenGLBackend 2017-10-03 19:19:35 +02:00
wayland Move SceneOpenGL into a dedicated plugin 2017-09-30 13:12:10 +02:00
x11 Move SceneOpenGL into a dedicated plugin 2017-09-30 13:12:10 +02:00
CMakeLists.txt Hide the Linux specific parts behind check for headers 2017-07-24 16:19:27 +02:00