diff options
author | Brian Paul <[email protected]> | 2003-01-21 21:47:45 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-01-21 21:47:45 +0000 |
commit | 418ac00e7583bf3136816a43b3357e0d0b0c776d (patch) | |
tree | 4e75fbf211fff0700c85f2f69d75e0b535ba1efb /src/mesa/main/context.c | |
parent | 068a4812fc1d9e321aa65a91ceb8bc824bedc69a (diff) |
GL_SGI_texture_color_table extension (Eric Plante)
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 2d43652c8a7..9dac955c8a7 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1,4 +1,4 @@ -/* $Id: context.c,v 1.191 2003/01/14 04:55:45 brianp Exp $ */ +/* $Id: context.c,v 1.192 2003/01/21 21:47:45 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1323,6 +1323,9 @@ init_attrib_groups( GLcontext *ctx ) init_texture_unit( ctx, i ); ctx->Texture.SharedPalette = GL_FALSE; _mesa_init_colortable(&ctx->Texture.Palette); + ASSIGN_4V(ctx->Texture.ColorTableScale, 1.0, 1.0, 1.0, 1.0); + ASSIGN_4V(ctx->Texture.ColorTableBias, 0.0, 0.0, 0.0, 0.0); + ctx->Texture.ColorTableEnabled = GL_FALSE; /* Transformation group */ ctx->Transform.MatrixMode = GL_MODELVIEW; @@ -1462,6 +1465,8 @@ init_attrib_groups( GLcontext *ctx ) _mesa_init_colortable(&ctx->ProxyPostConvolutionColorTable); _mesa_init_colortable(&ctx->PostColorMatrixColorTable); _mesa_init_colortable(&ctx->ProxyPostColorMatrixColorTable); + _mesa_init_colortable(&ctx->TextureColorTable); + _mesa_init_colortable(&ctx->ProxyTextureColorTable); /* Vertex/fragment programs */ ctx->Program.ErrorPos = -1; @@ -2035,6 +2040,7 @@ _mesa_free_context_data( GLcontext *ctx ) _mesa_free_colortable_data( &ctx->PostConvolutionColorTable ); _mesa_free_colortable_data( &ctx->PostColorMatrixColorTable ); _mesa_free_colortable_data( &ctx->Texture.Palette ); + _mesa_free_colortable_data( &ctx->TextureColorTable ); _math_matrix_dtr(&ctx->Viewport._WindowMap); |