diff options
author | Brian Paul <[email protected]> | 2000-04-08 18:57:45 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-04-08 18:57:45 +0000 |
commit | 250069dbb443f26f4dcc409c9c873019a5f50f9d (patch) | |
tree | 605c5ed78350822c85fef87230b5a3999d02b208 /src/mesa/main/context.c | |
parent | a518b47e5bcff6e3feaeb378ccb06fd1ea1da760 (diff) |
added GL_SGI_color_matrix extension
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 8c2be5d497e..dfcff91cc29 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1,4 +1,4 @@ -/* $Id: context.c,v 1.55 2000/04/07 16:27:26 brianp Exp $ */ +/* $Id: context.c,v 1.56 2000/04/08 18:57:45 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -853,6 +853,13 @@ static void init_attrib_groups( GLcontext *ctx ) } } + /* Color matrix */ + gl_matrix_ctr(&ctx->ColorMatrix); + ctx->ColorStackDepth = 0; + for (j = 0; j < MAX_COLOR_STACK_DEPTH - 1; j++) { + gl_matrix_ctr(&ctx->ColorStack[j]); + } + /* Accumulate buffer group */ ASSIGN_4V( ctx->Accum.ClearColor, 0.0, 0.0, 0.0, 0.0 ); @@ -1120,6 +1127,14 @@ static void init_attrib_groups( GLcontext *ctx ) ctx->Pixel.PixelTextureEnabled = GL_FALSE; ctx->Pixel.FragmentRgbSource = GL_PIXEL_GROUP_COLOR_SGIS; ctx->Pixel.FragmentAlphaSource = GL_PIXEL_GROUP_COLOR_SGIS; + ctx->Pixel.PostColorMatrixRedBias = 0.0; + ctx->Pixel.PostColorMatrixRedScale = 1.0; + ctx->Pixel.PostColorMatrixGreenBias = 0.0; + ctx->Pixel.PostColorMatrixGreenScale = 1.0; + ctx->Pixel.PostColorMatrixBlueBias = 0.0; + ctx->Pixel.PostColorMatrixBlueScale = 1.0; + ctx->Pixel.PostColorMatrixAlphaBias = 0.0; + ctx->Pixel.PostColorMatrixAlphaScale = 1.0; /* Point group */ ctx->Point.SmoothFlag = GL_FALSE; |