mesa: s/union gl_dlist_node/Node/ in dlist.c code
[mesa.git] / src / mesa / main / remap.c
index c89fba453023ecad854b78d226f6f089272d97e1..4a881865a448ab280d9b60cf20f995a2578c6735 100644 (file)
@@ -1,6 +1,5 @@
 /*
  * Mesa 3-D graphics library
- * Version:  7.7
  *
  * Copyright (C) 2009 Chia-I Wu <olv@0xlab.org>
  *
  * a dynamic entry, or the corresponding static entry, in glapi.
  */
 
-#include "mfeatures.h"
-
-#if FEATURE_remap_table
-
 #include "remap.h"
 #include "imports.h"
 #include "glapi/glapi.h"
@@ -208,8 +203,10 @@ _mesa_do_init_remap_table(const char *pool,
       offset = _mesa_map_function_spec(spec);
       /* store the dispatch offset in the remap table */
       driDispatchRemapTable[i] = offset;
-      if (offset < 0)
-         _mesa_warning(NULL, "failed to remap index %d", i);
+      if (offset < 0) {
+         const char *name = spec + strlen(spec) + 1;
+         _mesa_warning(NULL, "failed to remap %s", name);
+      }
    }
 }
 
@@ -221,6 +218,3 @@ _mesa_init_remap_table(void)
                             driDispatchRemapTable_size,
                             MESA_remap_table_functions);
 }
-
-
-#endif /* FEATURE_remap_table */