summaryrefslogtreecommitdiff
path: root/src/egl/main/eglglobals.c
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-08-14 17:47:00 +0800
committerBrian Paul <brianp@vmware.com>2009-08-18 08:49:53 -0600
commit38feefdc4eb4a3c7530b9cddea4c55e9ef39aec8 (patch)
treecb7d042db8ac72c18064981e2a3d17aa048e9f91 /src/egl/main/eglglobals.c
parent7a9f52800932c02f5b425158b4978d0c1d2f4fd3 (diff)
egl: Remove hash table for displays.
The hash table was used to map a display to a handle. It is simpler to cast directly. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'src/egl/main/eglglobals.c')
-rw-r--r--src/egl/main/eglglobals.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/egl/main/eglglobals.c b/src/egl/main/eglglobals.c
index 8c14f9c4bf..3ae4c1ad3a 100644
--- a/src/egl/main/eglglobals.c
+++ b/src/egl/main/eglglobals.c
@@ -13,12 +13,14 @@ static _EGL_DECLARE_MUTEX(_eglGlobalMutex);
struct _egl_global _eglGlobal =
{
&_eglGlobalMutex, /* Mutex */
+ NULL, /* DisplayList */
1, /* FreeScreenHandle */
0x0, /* ClientAPIsMask */
0, /* NumDrivers */
{ NULL }, /* Drivers */
- 1, /* NumAtExitCalls */
+ 2, /* NumAtExitCalls */
{ /* AtExitCalls */
+ _eglFiniDisplay,
_eglUnloadDrivers
},
};