From 4fe34b27f641459acae8150cde927eb4952277ad Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 11 Apr 2000 15:07:48 +0000 Subject: initial work on GL_SGI_color_table extension --- src/mesa/main/context.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/context.c') diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index a6e52a896f..2822f080c1 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1,4 +1,4 @@ -/* $Id: context.c,v 1.57 2000/04/10 15:52:25 brianp Exp $ */ +/* $Id: context.c,v 1.58 2000/04/11 15:07:48 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1135,6 +1135,17 @@ static void init_attrib_groups( GLcontext *ctx ) ctx->Pixel.PostColorMatrixBlueScale = 1.0; ctx->Pixel.PostColorMatrixAlphaBias = 0.0; ctx->Pixel.PostColorMatrixAlphaScale = 1.0; + ctx->Pixel.ColorTableScale[0] = 1.0F; + ctx->Pixel.ColorTableScale[1] = 1.0F; + ctx->Pixel.ColorTableScale[2] = 1.0F; + ctx->Pixel.ColorTableScale[3] = 1.0F; + ctx->Pixel.ColorTableBias[0] = 0.0F; + ctx->Pixel.ColorTableBias[1] = 0.0F; + ctx->Pixel.ColorTableBias[2] = 0.0F; + ctx->Pixel.ColorTableBias[3] = 0.0F; + ctx->Pixel.ColorTableEnabled = GL_FALSE; + ctx->Pixel.PostConvolutionColorTableEnabled = GL_FALSE; + ctx->Pixel.PostColorMatrixColorTableEnabled = GL_FALSE; /* Point group */ ctx->Point.SmoothFlag = GL_FALSE; -- cgit v1.2.3