print an error message in convertPalette before dying.
authorDaniel Borca <dborca@users.sourceforge.net>
Mon, 18 Oct 2004 08:17:17 +0000 (08:17 +0000)
committerDaniel Borca <dborca@users.sourceforge.net>
Mon, 18 Oct 2004 08:17:17 +0000 (08:17 +0000)
this is NOT a fix, but it'll have to wait a little...

src/mesa/drivers/dri/tdfx/tdfx_tex.c

index 5e528dc..a86440a 100644 (file)
@@ -649,6 +649,9 @@ 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));
     abort();
 }