Revert "wayland-drm: constify the callbacks struct"
authorDaniel Stone <daniels@collabora.com>
Fri, 22 Sep 2017 22:40:59 +0000 (15:40 -0700)
committerDaniel Stone <daniels@collabora.com>
Tue, 26 Sep 2017 20:48:17 +0000 (21:48 +0100)
commit5b7e65136440f60a6afe85c9517f42861ee07224
tree09e56c10e40461af43d93379b9f2ffc8b461c4f4
parent8822ea100cfd7482290c3c6b2a7200c8b888a7f4
Revert "wayland-drm: constify the callbacks struct"

The wayland-drm callback struct is referenced, rather than duplicated,
inside wayland-drm. Constifying this struct involved moving it on to the
stack; as a result, starting any EGL client on Wayland called into
random stack memory, and killed the compositor.

This reverts commit 1d0be5b3fe548ee33d4520092f583c76d42510a6 and
39d539e321c6c97433a15660c9d9a20ad8657ff0.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Cc: Emil Velikov <emil.velikov@collabora.com>
Cc: Krzysztof Sobiecki <sobkas@gmail.com>
Fixes: 1d0be5b3fe54 ("wayland-drm: constify the callbacks struct")
src/egl/drivers/dri2/egl_dri2.c
src/egl/wayland/wayland-drm/wayland-drm.c
src/egl/wayland/wayland-drm/wayland-drm.h