egl: Factor some common terminate cleanup up to common code
authorAdam Jackson <ajax@redhat.com>
Tue, 20 Sep 2022 18:55:37 +0000 (14:55 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 27 Sep 2022 16:00:45 +0000 (16:00 +0000)
commit04826cd9fc83365e99db3a491254a8d5a6eaac63
tree249b30aa172f4c17fbccb3325511cdfc20698e28
parenta942068fdb8d0abead04c68222c5d217865af67a
egl: Factor some common terminate cleanup up to common code

It's a little difficult to see from the diff, but this is effectively
the same calling sequence as before, and more importantly it means the
backend only cleans up backend state rather than needing to call up to
the core.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18824>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/wgl/egl_wgl.c
src/egl/main/eglapi.c
src/egl/main/egldisplay.c