diff options
author | Brian Paul <[email protected]> | 2000-11-27 18:59:09 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-11-27 18:59:09 +0000 |
commit | 72ef753d5c8eedc3375af77da083cf93447a73a3 (patch) | |
tree | ec392ed0f960cc9814922ffdc2ac3f9856ac0581 /src/mesa/main/attrib.c | |
parent | 297dfa0fbf38a415d70caaab29d93dad585df1d2 (diff) |
Set ENABLE_LIGHT according to ctx->Light.Enabled whether or not
individual light sources are enabled.
Diffstat (limited to 'src/mesa/main/attrib.c')
-rw-r--r-- | src/mesa/main/attrib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index b8106fad455..c6475ca5afd 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1,4 +1,4 @@ -/* $Id: attrib.c,v 1.36 2000/11/22 07:32:16 joukj Exp $ */ +/* $Id: attrib.c,v 1.37 2000/11/27 18:59:09 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -706,7 +706,7 @@ _mesa_PopAttrib(void) if (ctx->Driver.ShadeModel) (*ctx->Driver.ShadeModel)(ctx, ctx->Light.ShadeModel); ctx->_Enabled &= ~ENABLE_LIGHT; - if (ctx->Light.Enabled && !is_empty_list(&ctx->Light.EnabledList)) + if (ctx->Light.Enabled) ctx->_Enabled |= ENABLE_LIGHT; break; case GL_LINE_BIT: |