mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 02:40:11 +01:00
enable lighting even if no light sources are turned on
This commit is contained in:
parent
456935a65e
commit
2c318aad9d
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue