summaryrefslogtreecommitdiff
path: root/src/egl/main/eglcurrent.c
AgeCommit message (Collapse)Author
2010-01-31egl: Remove unnecessary headers.Vinson Lee
2010-01-30egl: Clean up header inclusions.Chia-I Wu
Mainly to remove eglcurrent.h and egldisplay.h from eglglobals.h.
2010-01-26egl: Remove _eglGetCurrentSurface and _eglGetCurrentDisplay.Chia-I Wu
They have little use in drivers since drivers need to work for multiple current contexts.
2010-01-26egl: Add _eglGetAPIContext.Chia-I Wu
It will return the currently bound context of the given API.
2010-01-24egl: Make surfaces and contexts resources.Chia-I Wu
Turn _EGLSurface and _EGLContext into _EGLResource so that they can be managed uniformly.
2009-10-15egl: Fix GLX_USE_TLS build.Chia-I Wu
Remove an extraneous semicolon. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-13egl: Allow binding to any client API.Chia-I Wu
As a result, EGL_NONE is no longer a valid client API. And it is possible that no config supports the current bound API. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-11egl: Use _eglAddAtExitCall to free thread infos and displays.Chia-I Wu
Thread infos and displays are usually not freed by applications. This commit add atexit calls to free them. 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-08-11egl: Destroy eglThreadInfo on thread exit.Chia-I Wu
This is done through pthread TSD destructor. It destroys all thread infos except for main thread's. The thread info of the main thread is destroyed by _eglFiniCurrent. TLS case is not supported yet. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-07-17egl: commit missing eglcurrent.[ch] filesBrian Paul
Not sure how these got left out from earlier commit.