diff options
author | Brian Paul <[email protected]> | 2000-06-28 04:20:21 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-06-28 04:20:21 +0000 |
commit | 77d61af876de5ae5c309e82ece6070530cc49dfb (patch) | |
tree | a1c583110b23de8158877c0971d87fe9e8d9b24f /src/mesa | |
parent | 904ecb2355978fb5bf709d287e82c9a8c6aeeca2 (diff) |
added code to initialize shininess tables
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/context.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index ccb7cc00a46..0c76867a223 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1,4 +1,4 @@ -/* $Id: context.c,v 1.74 2000/06/27 23:38:45 brianp Exp $ */ +/* $Id: context.c,v 1.75 2000/06/28 04:20:21 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1006,6 +1006,11 @@ init_attrib_groups( GLcontext *ctx ) ctx->ShineTable[i]->refcount++; } + gl_compute_shine_table( ctx, 0, ctx->Light.Material[0].Shininess ); + gl_compute_shine_table( ctx, 2, ctx->Light.Material[0].Shininess * .5 ); + gl_compute_shine_table( ctx, 1, ctx->Light.Material[1].Shininess ); + gl_compute_shine_table( ctx, 3, ctx->Light.Material[1].Shininess * .5 ); + /* Line group */ ctx->Line.SmoothFlag = GL_FALSE; |