diff options
author | Daniel Borca <[email protected]> | 2005-01-06 07:36:56 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2005-01-06 07:36:56 +0000 |
commit | 7047cb08ebf4045b33738d67281170ab64926f28 (patch) | |
tree | 17c300e5a6de32f7f67880875fc264ed7e21e002 /src/mesa/drivers/dri/tdfx | |
parent | 50122c9d2de568f7b8f37bd63ea252898008010b (diff) |
added "default" branch in `convertPalette'
Diffstat (limited to 'src/mesa/drivers/dri/tdfx')
-rw-r--r-- | src/mesa/drivers/dri/tdfx/tdfx_tex.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_tex.c b/src/mesa/drivers/dri/tdfx/tdfx_tex.c index 3091fd18635..0ce660308fe 100644 --- a/src/mesa/drivers/dri/tdfx/tdfx_tex.c +++ b/src/mesa/drivers/dri/tdfx/tdfx_tex.c @@ -651,12 +651,11 @@ convertPalette(FxU32 data[256], const struct gl_color_table *table) } return GR_TEXTABLE_PALETTE_6666_EXT; default: - return GR_TEXTABLE_NCC0; /* ???? */ + /* XXX fixme: how can this happen? */ + _mesa_error(NULL, GL_INVALID_ENUM, "convertPalette: table->Format == %s", + _mesa_lookup_enum_by_nr(table->Format)); + return GR_TEXTABLE_PALETTE; } - /* XXX fixme: how can this happen? */ - _mesa_error(NULL, GL_INVALID_ENUM, "convertPalette: table->Format == %s", - _mesa_lookup_enum_by_nr(table->Format)); - abort(); } |