ctx->Driver.BindTexture=fxDDTexBind;
ctx->Driver.DeleteTexture=fxDDTexDel;
ctx->Driver.UpdateTexturePalette=fxDDTexPalette;
- ctx->Driver.UseGlobalTexturePalette=fxDDTexUseGlbPalette;
ctx->Driver.RectFunc=NULL;
fxMesa->new_state |= FX_NEW_SCISSOR;
ctx->Driver.RenderStart = fxSetupFXUnits;
break;
+ case GL_SHARED_TEXTURE_PALETTE_EXT:
+ fxDDTexUseGlbPalette(ctx, state);
+ break;
case GL_FOG:
fxMesa->new_state |= FX_NEW_FOG;
ctx->Driver.RenderStart = fxSetupFXUnits;
-/* $Id: dd.h,v 1.16 2000/03/07 17:11:29 brianp Exp $ */
+/* $Id: dd.h,v 1.17 2000/03/07 18:24:49 brianp Exp $ */
/*
* Mesa 3-D graphics library
* was changed.
*/
- void (*UseGlobalTexturePalette)( GLcontext *ctx, GLboolean state );
- /*
- * Called via glEnable/Disable(GL_SHARED_TEXTURE_PALETTE_EXT)
- */
-
void (*ActiveTexture)( GLcontext *ctx, GLuint texUnitNumber );
/*
* Called by glActiveTextureARB to set current texture unit.
-/* $Id: enable.c,v 1.10 1999/11/11 01:22:26 brianp Exp $ */
+/* $Id: enable.c,v 1.11 2000/03/07 18:24:49 brianp Exp $ */
/*
* Mesa 3-D graphics library
break;
case GL_SHARED_TEXTURE_PALETTE_EXT:
ctx->Texture.SharedPalette = state;
- if (ctx->Driver.UseGlobalTexturePalette)
- (*ctx->Driver.UseGlobalTexturePalette)( ctx, state );
break;
case GL_STENCIL_TEST:
if (state && ctx->Visual->StencilBits==0) {