mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 18:08:03 +02:00
compositor-drm: call EGL cleanup functions on exit
This commit is contained in:
parent
f7e23d5c88
commit
5f5f31939d
1 changed files with 6 additions and 0 deletions
|
|
@ -1578,6 +1578,12 @@ drm_destroy(struct weston_compositor *ec)
|
|||
|
||||
weston_compositor_shutdown(ec);
|
||||
|
||||
/* Work around crash in egl_dri2.c's dri2_make_current() */
|
||||
eglMakeCurrent(ec->display, EGL_NO_SURFACE, EGL_NO_SURFACE,
|
||||
EGL_NO_CONTEXT);
|
||||
eglTerminate(ec->display);
|
||||
eglReleaseThread();
|
||||
|
||||
gbm_device_destroy(d->gbm);
|
||||
destroy_sprites(d);
|
||||
if (weston_launcher_drm_set_master(&d->base, d->drm.fd, 0) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue