OSDN Git Service

egl: Initialize current thread management on demand.
authorChia-I Wu <olvaffe@gmail.com>
Mon, 10 Aug 2009 04:46:08 +0000 (12:46 +0800)
committerBrian Paul <brianp@vmware.com>
Wed, 12 Aug 2009 04:14:35 +0000 (22:14 -0600)
commit56d2119280a202b7714821bc324b07df4b36d559
treecced27279a8eb9d7231ec358c79c7238631a8e26
parentf6c2f5e37925abe3ea7036b7a3bd6ca1721e4f73
egl: Initialize current thread management on demand.

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>
src/egl/main/eglcurrent.c
src/egl/main/eglcurrent.h
src/egl/main/eglglobals.c