From 98ebc8165c39a3f4bcfa16836292e217f24fe1ed Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 30 Jun 2010 18:27:22 +0800 Subject: [PATCH] egl: Make _eglUnloadDrivers no-op on Windows. Windows unloads DLLs before atexit. Make _eglUnloadDrivers no-op on Windows for now. --- src/egl/main/egldriver.c | 4 ++++ 1 file changed, 4 insertions(+) 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 * -- 2.30.2