mesa: Remove pointless USE_EXTERNAL_DXTN_LIB macro.
authorJose Fonseca <jfonseca@vmware.com>
Thu, 2 Apr 2015 09:09:38 +0000 (10:09 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Mon, 13 Apr 2015 11:02:52 +0000 (12:02 +0100)
I'm not sure what was the original intention, but currently
USE_EXTERNAL_DXTN_LIB always ends up defined, one way or another.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
configure.ac
src/mesa/main/texcompress_s3tc.c

index a40cc20ff8d0e8ceef6ab23655fceb4f66a18101..9e8c1d87ed97b859231419f94bc29527dbb258a9 100644 (file)
@@ -230,7 +230,7 @@ _SAVE_LDFLAGS="$LDFLAGS"
 _SAVE_CPPFLAGS="$CPPFLAGS"
 
 dnl Compiler macros
-DEFINES="-DUSE_EXTERNAL_DXTN_LIB=1"
+DEFINES=""
 AC_SUBST([DEFINES])
 case "$host_os" in
 linux*|*-gnu*|gnu*)
index 38ce5f89feb4a3d8baf42dc292935a48c1d425aa..7ce3cb88ec78e16c52cf03cbb25a8e4b8dc50283 100644 (file)
  * GL_EXT_texture_compression_s3tc support.
  */
 
-#ifndef USE_EXTERNAL_DXTN_LIB
-#define USE_EXTERNAL_DXTN_LIB 1
-#endif
-
 #include "glheader.h"
 #include "imports.h"
 #include "dlopen.h"
@@ -76,7 +72,6 @@ _mesa_init_texture_s3tc( struct gl_context *ctx )
 {
    /* called during context initialization */
    ctx->Mesa_DXTn = GL_FALSE;
-#if USE_EXTERNAL_DXTN_LIB
    if (!dxtlibhandle) {
       dxtlibhandle = _mesa_dlopen(DXTN_LIBNAME, 0);
       if (!dxtlibhandle) {
@@ -117,9 +112,6 @@ _mesa_init_texture_s3tc( struct gl_context *ctx )
    if (dxtlibhandle) {
       ctx->Mesa_DXTn = GL_TRUE;
    }
-#else
-   (void) ctx;
-#endif
 }
 
 /**