diff options
author | Chia-I Wu <[email protected]> | 2009-09-29 16:11:06 +0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-10-13 12:00:37 -0600 |
commit | f1c5cab5525dfcb8edffa275e7c8c3e753c7536f (patch) | |
tree | 80facf59a8591e5d5d1cc3adf44a008365b23510 /src/egl/main/eglglobals.c | |
parent | 310c76812e5a2013dad36fc9d1686f57e7b1e626 (diff) |
egl: Improve logging facility.
Add _eglSetLogger and _eglSetLogLevel to allow drivers to change the
message logger or report level.
Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/egl/main/eglglobals.c')
-rw-r--r-- | src/egl/main/eglglobals.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/egl/main/eglglobals.c b/src/egl/main/eglglobals.c index 30d9fe97b4e..443d0f072cf 100644 --- a/src/egl/main/eglglobals.c +++ b/src/egl/main/eglglobals.c @@ -18,9 +18,10 @@ struct _egl_global _eglGlobal = 0, /* NumDrivers */ { NULL }, /* Drivers */ 2, /* NumAtExitCalls */ - { /* AtExitCalls */ - _eglFiniDisplay, - _eglUnloadDrivers + { + /* default AtExitCalls, called in reverse order */ + _eglUnloadDrivers, /* always called last */ + _eglFiniDisplay }, }; |