egl/wayland: polish object teardown in dri2_wl_destroy_surface
authorEmil Velikov <emil.velikov@collabora.com>
Sun, 27 Aug 2017 10:20:28 +0000 (11:20 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 29 Aug 2017 12:41:06 +0000 (13:41 +0100)
commit1a8015e753c6f52b24a473ea60e3ce0b38de7d42
treefc2dfd300ceb59be8a7bcc845ad767c40a6c05dd
parent83442112d7136b6d0c2f6d84c409c04664aeb154
egl/wayland: polish object teardown in dri2_wl_destroy_surface

The wl_drm wrapper is created before the wl display/surface ones.
Thus make sure we destroy it after them. In reality it should not make
any difference either way.

Fixes: 03dd9a88b0b ("egl/wayland: Use per-surface event queues")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/egl/drivers/dri2/platform_wayland.c