diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 1999-10-20 22:16:45 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 1999-10-20 22:16:45 +0000 |
commit | 2c318aad9ddc67506e16c6c2b42e0f0d2edcfe41 (patch) | |
tree | 18ac9ef00190953cccdf7e9913140d5f4e75bcdc /src/mesa | |
parent | 456935a65e7f3616cbbc88dcf7e6277df714e3fa (diff) |
enable lighting even if no light sources are turned on
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/enable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 9de6fe578b..d6e63f5ae6 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1,4 +1,4 @@ -/* $Id: enable.c,v 1.6 1999/10/08 09:27:10 keithw Exp $ */ +/* $Id: enable.c,v 1.7 1999/10/20 22:16:45 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -192,7 +192,7 @@ void gl_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) if (ctx->Light.Enabled!=state) { ctx->Light.Enabled = state; ctx->Enabled &= ~ENABLE_LIGHT; - if (state && !is_empty_list(&ctx->Light.EnabledList)) + if (state) ctx->Enabled |= ENABLE_LIGHT; ctx->NewState |= NEW_LIGHTING; } |