egl: replace _eglInitDriver() with a simple variable

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6037>
This commit is contained in:
Eric Engestrom
2020-07-22 01:06:05 +02:00
committed by Marge Bot
parent 3d4deb659e
commit d24e3ea8cb
5 changed files with 68 additions and 119 deletions

View File

@@ -54,11 +54,10 @@ struct _egl_global _eglGlobal =
.Mutex = &_eglGlobalMutex,
.DisplayList = NULL,
.DeviceList = &_eglSoftwareDevice,
.NumAtExitCalls = 3,
.NumAtExitCalls = 2,
.AtExitCalls = {
/* default AtExitCalls, called in reverse order */
_eglFiniDevice, /* always called last */
_eglUnloadDrivers,
_eglFiniDisplay,
},