aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldriver.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-06-30 18:27:22 +0800
committerChia-I Wu <[email protected]>2010-06-30 18:32:48 +0800
commit98ebc8165c39a3f4bcfa16836292e217f24fe1ed (patch)
treee4781b6b5107d30002fc998193d38a5c725298b0 /src/egl/main/egldriver.c
parentc5bc0a8d666334cb9ae823a12fac53f02a1ac592 (diff)
egl: Make _eglUnloadDrivers no-op on Windows.
Windows unloads DLLs before atexit. Make _eglUnloadDrivers no-op on Windows for now.
Diffstat (limited to 'src/egl/main/egldriver.c')
-rw-r--r--src/egl/main/egldriver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c
index 447f67d88a7..d38022c7c6f 100644
--- a/src/egl/main/egldriver.c
+++ b/src/egl/main/egldriver.c
@@ -425,6 +425,7 @@ _eglPreloadDrivers(void)
void
_eglUnloadDrivers(void)
{
+#if defined(_EGL_OS_UNIX)
EGLint i;
/* this is called at atexit time */
@@ -447,6 +448,9 @@ _eglUnloadDrivers(void)
}
_eglGlobal.NumDrivers = 0;
+#elif defined(_EGL_OS_WINDOWS)
+ /* XXX Windows unloads DLLs before atexit */
+#endif
}
_EGLDriver *