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/enable.c | |
parent | 068a4812fc1d9e321aa65a91ceb8bc824bedc69a (diff) |
GL_SGI_texture_color_table extension (Eric Plante)
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r-- | src/mesa/main/enable.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 84d03112160..44c1e14015f 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1,4 +1,4 @@ -/* $Id: enable.c,v 1.72 2003/01/14 04:55:45 brianp Exp $ */ +/* $Id: enable.c,v 1.73 2003/01/21 21:47:49 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -691,6 +691,13 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) FLUSH_VERTICES(ctx, _NEW_PIXEL); ctx->Pixel.PostColorMatrixColorTableEnabled = state; break; + case GL_TEXTURE_COLOR_TABLE_SGI: + CHECK_EXTENSION(SGI_texture_color_table, cap); + if (ctx->Texture.ColorTableEnabled == state) + return; + FLUSH_VERTICES(ctx, _NEW_TEXTURE); + ctx->Texture.ColorTableEnabled = state; + break; /* GL_EXT_convolution */ case GL_CONVOLUTION_1D: |