egl: remove final Windows specific workaround
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 14 Jul 2015 00:57:23 +0000 (01:57 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Jul 2015 15:35:26 +0000 (16:35 +0100)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/egl/main/Android.mk
src/egl/main/Makefile.am
src/egl/main/SConscript
src/egl/main/egldriver.c

index 0ba7295396073955e00703f2a83fdd64c26b1ded..4856528ed54a8a4fa5da733d21f1641b8f9dab7c 100644 (file)
@@ -40,8 +40,7 @@ LOCAL_SRC_FILES := $(SOURCES)
 
 LOCAL_CFLAGS := \
        -D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_ANDROID \
-       -D_EGL_DRIVER_SEARCH_DIR=\"/system/lib/egl\" \
-       -D_EGL_OS_UNIX=1
+       -D_EGL_DRIVER_SEARCH_DIR=\"/system/lib/egl\"
 
 LOCAL_SHARED_LIBRARIES := \
        libdl \
index ec0f88e0424000d36f45995fc5445ea3dbada181..77f8b34aceea6c6f95bbdd9aa9a1819bbba6a451 100644 (file)
@@ -28,8 +28,7 @@ AM_CFLAGS = \
        $(VISIBILITY_CFLAGS) \
        $(EGL_CFLAGS) \
        -D_EGL_NATIVE_PLATFORM=$(EGL_NATIVE_PLATFORM) \
-       -D_EGL_DRIVER_SEARCH_DIR=\"$(libdir)/egl\" \
-       -D_EGL_OS_UNIX=1
+       -D_EGL_DRIVER_SEARCH_DIR=\"$(libdir)/egl\"
 
 lib_LTLIBRARIES = libEGL.la
 
index 6fc13416a5d138ac8e83fe997824de5bf7286fac..b77ae7839411aebba559fa43fcb0092de1844d4c 100644 (file)
@@ -12,7 +12,6 @@ env.Append(CPPDEFINES = [
 
 env.Append(CPPDEFINES = [
     '_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_HAIKU',
-    '_EGL_OS_UNIX',
     '_EGL_BUILT_IN_DRIVER_HAIKU',
 ])
 env.Prepend(LIBS = [
index 05ccd0e3796bc3540b1dfe56ddb34bb986486ca2..b9b21dec5ea5903ff2606fec48b6ba84caaa3b0a 100644 (file)
@@ -96,15 +96,10 @@ _eglLoadModule(_EGLModule *mod)
 static void
 _eglUnloadModule(_EGLModule *mod)
 {
-#if defined(_EGL_OS_UNIX)
    /* destroy the driver */
    if (mod->Driver && mod->Driver->Unload)
       mod->Driver->Unload(mod->Driver);
 
-#elif defined(_EGL_OS_WINDOWS)
-   /* XXX Windows unloads DLLs before atexit */
-#endif
-
    mod->Driver = NULL;
 }