OSDN Git Service

more fixing for tdfxUpdateTexturePalette
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 23 Jan 2004 18:51:00 +0000 (18:51 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 23 Jan 2004 18:51:00 +0000 (18:51 +0000)
Make-config
src/mesa/drivers/dri/tdfx/tdfx_state.c
src/mesa/drivers/dri/tdfx/tdfx_tex.c
src/mesa/drivers/dri/tdfx/tdfx_tex.h

index 835be9d..031e8dd 100644 (file)
@@ -739,7 +739,7 @@ linux-solo:
        "GLUT_LIB = libglut.so" \
        "CC = gcc" \
        "CXX = g++" \
-       "CFLAGS = -g -std=c99 -pedantic -Wundef -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE" \
+       "CFLAGS = -Wmissing-prototypes -g -std=c99 -pedantic -Wundef -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE" \
        "CXXFLAGS = -g -Wall -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE" \
        "GLUT_CFLAGS = -fexceptions" \
        "GL_LIB_DEPS = -lm -lpthread -lexpat" \
index c5c2cdb..6130698 100644 (file)
@@ -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;
index e4240af..515ae7c 100644 (file)
@@ -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;
 }
 
index ceb2e57..a3bcee4 100644 (file)
@@ -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);