scons: Updates for targets/egl-static.
[mesa.git] / src / egl / main / eglglobals.c
index e93b48e03b80bb58e8c368babc040594bbf4af2d..52eebb07f6c4e3959c45929f659fcabe079ef613 100644 (file)
@@ -2,24 +2,21 @@
 #include <assert.h>
 #include "eglglobals.h"
 #include "egldisplay.h"
-#include "egllog.h"
+#include "egldriver.h"
 #include "eglmutex.h"
 
 
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
-
-
 static _EGL_DECLARE_MUTEX(_eglGlobalMutex);
 struct _egl_global _eglGlobal =
 {
    &_eglGlobalMutex,       /* Mutex */
-   1,                      /* FreeScreenHandle */
-   0x0,                    /* ClientAPIsMask */
-   { 0x0 },                /* ClientAPIs */
-   0,                      /* NumDrivers */
-   { NULL },               /* Drivers */
-   0,                      /* NumAtExitCalls */
-   { NULL },               /* AtExitCalls */
+   NULL,                   /* DisplayList */
+   2,                      /* NumAtExitCalls */
+   {
+      /* default AtExitCalls, called in reverse order */
+      _eglUnloadDrivers, /* always called last */
+      _eglFiniDisplay
+   },
 };