OSDN Git Service

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)
committerAndres Gomez <agomez@igalia.com>
Wed, 6 Sep 2017 15:05:10 +0000 (18:05 +0300)
commit5b4678c3bcc7512f6ac020bb21441f986c55cbe4
tree0783a1c84347d8ce9ca47032f1acefdfe6b69bab
parent618c883b8ec99162c02f1eba6796b281f987afc2
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>
(cherry picked from commit 1a8015e753c6f52b24a473ea60e3ce0b38de7d42)
src/egl/drivers/dri2/platform_wayland.c