summaryrefslogtreecommitdiff
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-04-12 00:27:37 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-04-12 00:27:37 +0000
commit13811376c99addb0616c9397cc7d5715befcd8d4 (patch)
tree7ec9a57f7f8b846a23783bc54ea6a35cddde3240 /src/mesa/main/context.c
parent5223c4d33f6f1f66a30c482cd515558f0591c24a (diff)
more GL_SGI_color_table extension work
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c34
1 files changed, 24 insertions, 10 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 2822f080c1..9ff18aca60 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1,4 +1,4 @@
-/* $Id: context.c,v 1.58 2000/04/11 15:07:48 brianp Exp $ */
+/* $Id: context.c,v 1.59 2000/04/12 00:27:37 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -787,6 +787,12 @@ static void init_color_table( struct gl_color_table *p )
p->Size = 1;
p->IntFormat = GL_RGBA;
p->Format = GL_RGBA;
+ p->RedSize = 8;
+ p->GreenSize = 8;
+ p->BlueSize = 8;
+ p->AlphaSize = 8;
+ p->IntensitySize = 0;
+ p->LuminanceSize = 0;
}
@@ -1309,6 +1315,23 @@ static void init_attrib_groups( GLcontext *ctx )
ctx->AttribStackDepth = 0;
ctx->ClientAttribStackDepth = 0;
+ /* Display list */
+ ctx->CallDepth = 0;
+ ctx->ExecuteFlag = GL_TRUE;
+ ctx->CompileFlag = GL_FALSE;
+ ctx->CurrentListPtr = NULL;
+ ctx->CurrentBlock = NULL;
+ ctx->CurrentListNum = 0;
+ ctx->CurrentPos = 0;
+
+ /* Color tables */
+ init_color_table(&ctx->ColorTable);
+ init_color_table(&ctx->ProxyColorTable);
+ init_color_table(&ctx->PostConvolutionColorTable);
+ init_color_table(&ctx->ProxyPostConvolutionColorTable);
+ init_color_table(&ctx->PostColorMatrixColorTable);
+ init_color_table(&ctx->ProxyPostColorMatrixColorTable);
+
/* Miscellaneous */
ctx->NewState = NEW_ALL;
ctx->RenderMode = GL_RENDER;
@@ -1320,15 +1343,6 @@ static void init_attrib_groups( GLcontext *ctx )
ctx->NeedEyeNormals = GL_FALSE;
ctx->vb_proj_matrix = &ctx->ModelProjectMatrix;
- /* Display list */
- ctx->CallDepth = 0;
- ctx->ExecuteFlag = GL_TRUE;
- ctx->CompileFlag = GL_FALSE;
- ctx->CurrentListPtr = NULL;
- ctx->CurrentBlock = NULL;
- ctx->CurrentListNum = 0;
- ctx->CurrentPos = 0;
-
ctx->ErrorValue = (GLenum) GL_NO_ERROR;
ctx->CatchSignals = GL_TRUE;