fix compilation error in `convertPalette' (still have to fix the issue, though)
authorDaniel Borca <dborca@users.sourceforge.net>
Tue, 19 Oct 2004 06:35:01 +0000 (06:35 +0000)
committerDaniel Borca <dborca@users.sourceforge.net>
Tue, 19 Oct 2004 06:35:01 +0000 (06:35 +0000)
src/mesa/drivers/dri/tdfx/tdfx_tex.c

index a86440a..2e8e3cb 100644 (file)
@@ -38,6 +38,8 @@
  *
  */
 
+
+#include "enums.h"
 #include "image.h"
 #include "texcompress.h"
 #include "texformat.h"
@@ -650,8 +652,8 @@ convertPalette(FxU32 data[256], const struct gl_color_table *table)
         return GR_TEXTABLE_PALETTE_6666_EXT;
     }
     /* XXX fixme: how can this happen? */
-    _mesa_error(ctx, GL_INVALID_ENUM, "convertPalette: table->Format == %s",
-                                      _mesa_lookup_enum_by_nr(table->Format));
+    _mesa_error(NULL, GL_INVALID_ENUM, "convertPalette: table->Format == %s",
+                                       _mesa_lookup_enum_by_nr(table->Format));
     abort();
 }