From 292615071a3867ab90dc7c444f72bcfadd2869f3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 23 Jan 2004 18:51:00 +0000 Subject: more fixing for tdfxUpdateTexturePalette --- src/mesa/drivers/dri/tdfx/tdfx_state.c | 3 --- src/mesa/drivers/dri/tdfx/tdfx_tex.c | 6 +++--- src/mesa/drivers/dri/tdfx/tdfx_tex.h | 3 --- 3 files changed, 3 insertions(+), 9 deletions(-) (limited to 'src/mesa/drivers/dri/tdfx') diff --git a/src/mesa/drivers/dri/tdfx/tdfx_state.c b/src/mesa/drivers/dri/tdfx/tdfx_state.c index c5c2cdb6f85..61306981cca 100644 --- a/src/mesa/drivers/dri/tdfx/tdfx_state.c +++ b/src/mesa/drivers/dri/tdfx/tdfx_state.c @@ -1404,9 +1404,6 @@ void tdfxDDInitStateFuncs( GLcontext *ctx ) ctx->Driver.Scissor = tdfxDDScissor; ctx->Driver.ShadeModel = tdfxDDShadeModel; -/* ctx->Driver.GetTexImage = tdfxDDGetTexImage; */ - ctx->Driver.UpdateTexturePalette = tdfxDDTexturePalette; - if ( fxMesa->haveHwStencil ) { ctx->Driver.StencilFunc = tdfxDDStencilFunc; ctx->Driver.StencilMask = tdfxDDStencilMask; diff --git a/src/mesa/drivers/dri/tdfx/tdfx_tex.c b/src/mesa/drivers/dri/tdfx/tdfx_tex.c index e4240afc4d1..515ae7c809a 100644 --- a/src/mesa/drivers/dri/tdfx/tdfx_tex.c +++ b/src/mesa/drivers/dri/tdfx/tdfx_tex.c @@ -536,8 +536,8 @@ convertPalette(FxU32 data[256], const struct gl_color_table *table) -void -tdfxTexturePalette(GLcontext * ctx, struct gl_texture_object *tObj) +static void +tdfxUpdateTexturePalette(GLcontext * ctx, struct gl_texture_object *tObj) { tdfxContextPtr fxMesa = TDFX_CONTEXT(ctx); @@ -1498,6 +1498,6 @@ void tdfxInitTextureFuncs( struct dd_function_table *functions ) functions->TexImage2D = tdfxTexImage2D; functions->TexSubImage2D = tdfxTexSubImage2D; functions->IsTextureResident = tdfxIsTextureResident; - functions->UpdateTexturePalette = tdfxTexturePalette; + functions->UpdateTexturePalette = tdfxUpdateTexturePalette; } diff --git a/src/mesa/drivers/dri/tdfx/tdfx_tex.h b/src/mesa/drivers/dri/tdfx/tdfx_tex.h index ceb2e575987..a3bcee4b695 100644 --- a/src/mesa/drivers/dri/tdfx/tdfx_tex.h +++ b/src/mesa/drivers/dri/tdfx/tdfx_tex.h @@ -54,9 +54,6 @@ extern void tdfxTexValidate(GLcontext * ctx, struct gl_texture_object *tObj); -extern void -tdfxTexturePalette(GLcontext * ctx, struct gl_texture_object *tObj); - #if 000 /* DEAD? */ extern void fxDDTexUseGlobalPalette(GLcontext * ctx, GLboolean state); -- cgit v1.2.3