projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
egl: Make display and surface hash tables local.
[mesa.git]
/
src
/
egl
/
main
/
eglglobals.c
diff --git
a/src/egl/main/eglglobals.c
b/src/egl/main/eglglobals.c
index 55de394ef5fb616765f303ee1bff624fd0deb89d..f2c1c217a5d01e93dde61190484c4b7b04f3e2a6 100644
(file)
--- a/
src/egl/main/eglglobals.c
+++ b/
src/egl/main/eglglobals.c
@@
-1,5
+1,6
@@
#include <stdlib.h>
#include "eglglobals.h"
#include <stdlib.h>
#include "eglglobals.h"
+#include "egldisplay.h"
#include "egllog.h"
struct _egl_global _eglGlobal =
#include "egllog.h"
struct _egl_global _eglGlobal =
@@
-15,15
+16,10
@@
void
_eglInitGlobals(void)
{
if (!_eglGlobal.Initialized) {
_eglInitGlobals(void)
{
if (!_eglGlobal.Initialized) {
- _eglGlobal.Displays = _eglNewHashTable();
- _eglGlobal.Surfaces = _eglNewHashTable();
_eglGlobal.FreeScreenHandle = 1;
_eglGlobal.Initialized = EGL_TRUE;
_eglGlobal.ClientAPIsMask = 0x0;
_eglGlobal.FreeScreenHandle = 1;
_eglGlobal.Initialized = EGL_TRUE;
_eglGlobal.ClientAPIsMask = 0x0;
-
- if (!_eglInitCurrent())
- _eglLog(_EGL_FATAL, "failed to initialize \"current\" system");
}
}
}
}
@@
-34,8
+30,4
@@
_eglInitGlobals(void)
void
_eglDestroyGlobals(void)
{
void
_eglDestroyGlobals(void)
{
- _eglFiniCurrent();
- /* XXX TODO walk over table entries, deleting each */
- _eglDeleteHashTable(_eglGlobal.Displays);
- _eglDeleteHashTable(_eglGlobal.Surfaces);
}
}