summaryrefslogtreecommitdiff
path: root/src/egl/main/eglglobals.c
AgeCommit message (Collapse)Author
2009-08-11egl: Add _eglAddAtExitCall.Chia-I Wu
Add a convenient wrapper to register atexit calls. Add mutex to _eglGlobal along the way. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-11egl: Make _eglGlobal initialize statically.Chia-I Wu
Now that display and surface hash tables are moved out, _eglGlobal can be initialized statically. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-11egl: Make display and surface hash tables local.Chia-I Wu
Move display and surface hash tables to egldisplay.c, and have them initialized on demand. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-11egl: Initialize current thread management on demand.Chia-I Wu
Current thread management was initialized in _eglInitGlobals, which is called only in eglGetDisplay. Since EGL does not require eglGetDisplay to be called first, the initialization is better to be done on demand. _eglFiniCurrent is removed, as it is not called at all. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-07-17egl: Support per-thread info.Chia-I Wu
This commit introduces a "current" system to manage per-thread info. It uses TLS, if GLX_USE_TLS is defined, or pthread, if PTHREADS is defined. If none of them are defined, it uses a dummy implementation that is just like before. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2008-08-04egl: fix _eglGlobal initialization for WindowsJonathan White
2008-06-20egl: default API should be ESBrian Paul
2008-05-30egl: clean-up re-org of the client API stateBrian Paul
2008-05-27eliminate the context hash tableBrian Paul
In EGL 1.4 the opaque EGLContext type is a pointer so we can just cast between public EGLContext handles and private _EGLContext pointers.
2006-01-30some initial EGL 1.2 workBrian Paul
2005-12-17minor code movementBrian Paul
2005-12-10Some initial per-thread support.Brian Paul
Rename eglShowSurfaceMESA to eglShowScreenSurfaceMESA.
2005-11-24report error token in message printed in _eglError()Brian Paul
2005-11-23change error messageBrian Paul
2005-05-04sync with latest EGL_MESA_screen_surface spec (EGLScreenMESA handles)Brian Paul
2005-04-22initial EGL codeBrian Paul