summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2004-10-18 08:17:17 +0000
committerDaniel Borca <[email protected]>2004-10-18 08:17:17 +0000
commita0720cf1046621734540138618768d6c123b7946 (patch)
tree482b9c5e2227cec70be508ca65554e23d8018f68 /src/mesa
parentc99a99b3bc4595162f8a8927b8d2d53c78edc1a0 (diff)
print an error message in convertPalette before dying.
this is NOT a fix, but it'll have to wait a little...
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/tdfx/tdfx_tex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_tex.c b/src/mesa/drivers/dri/tdfx/tdfx_tex.c
index 5e528dcf7f6..a86440afb1e 100644
--- a/src/mesa/drivers/dri/tdfx/tdfx_tex.c
+++ b/src/mesa/drivers/dri/tdfx/tdfx_tex.c
@@ -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();
}