diff options
author | Daniel Borca <dborca@users.sourceforge.net> | 2004-10-19 06:35:01 +0000 |
---|---|---|
committer | Daniel Borca <dborca@users.sourceforge.net> | 2004-10-19 06:35:01 +0000 |
commit | 05517d02be557d49b3ce043a4b2c179320e42412 (patch) | |
tree | 194206cea97a1a3c24b2fbcb3a06312fb54c77ae /src/mesa/drivers/dri/tdfx/tdfx_tex.c | |
parent | f404ff7b76d70a495d4246851127125a194a1adf (diff) |
fix compilation error in `convertPalette' (still have to fix the issue, though)
Diffstat (limited to 'src/mesa/drivers/dri/tdfx/tdfx_tex.c')
-rw-r--r-- | src/mesa/drivers/dri/tdfx/tdfx_tex.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_tex.c b/src/mesa/drivers/dri/tdfx/tdfx_tex.c index a86440afb1..2e8e3cba5d 100644 --- a/src/mesa/drivers/dri/tdfx/tdfx_tex.c +++ b/src/mesa/drivers/dri/tdfx/tdfx_tex.c @@ -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(); } |