added "default" branch in `convertPalette'
authorDaniel Borca <dborca@users.sourceforge.net>
Thu, 6 Jan 2005 07:36:56 +0000 (07:36 +0000)
committerDaniel Borca <dborca@users.sourceforge.net>
Thu, 6 Jan 2005 07:36:56 +0000 (07:36 +0000)
src/mesa/drivers/dri/tdfx/tdfx_tex.c

index 3091fd186355798fe64e63ba02fc75da63f80eb8..0ce660308fe53f7834455a8e60f1fe0ccc38bf8a 100644 (file)
@@ -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();
 }