summaryrefslogtreecommitdiff
path: root/src/mesa/main/light.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-09-15 05:00:45 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-09-15 05:00:45 +0000
commite00ac11d4dd05c56584622dc2707bbdcfe4b2707 (patch)
treeaf58ae919ba702b593311ae4251c92f6d1257f0a /src/mesa/main/light.c
parent0f540f4b0468f581f63fb0b6347fe66251fa545a (diff)
Replace GLuint with GLbitfield where appropriate. Also replace GLuint
with GLboolean in a few places.
Diffstat (limited to 'src/mesa/main/light.c')
-rw-r--r--src/mesa/main/light.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index 98934f3982..5c41e936b9 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -1,6 +1,6 @@
/*
* Mesa 3-D graphics library
- * Version: 6.3
+ * Version: 6.5
*
* Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
*
@@ -963,7 +963,7 @@ void
_mesa_update_lighting( GLcontext *ctx )
{
struct gl_light *light;
- ctx->Light._NeedEyeCoords = 0;
+ ctx->Light._NeedEyeCoords = GL_FALSE;
ctx->Light._Flags = 0;
if (!ctx->Light.Enabled)
@@ -1127,17 +1127,17 @@ _mesa_update_tnl_spaces( GLcontext *ctx, GLuint new_state )
const GLuint oldneedeyecoords = ctx->_NeedEyeCoords;
(void) new_state;
- ctx->_NeedEyeCoords = 0;
+ ctx->_NeedEyeCoords = GL_FALSE;
if (ctx->_ForceEyeCoords ||
(ctx->Texture._GenFlags & TEXGEN_NEED_EYE_COORD) ||
ctx->Point._Attenuated ||
ctx->Light._NeedEyeCoords)
- ctx->_NeedEyeCoords = 1;
+ ctx->_NeedEyeCoords = GL_TRUE;
if (ctx->Light.Enabled &&
!_math_matrix_is_length_preserving(ctx->ModelviewMatrixStack.Top))
- ctx->_NeedEyeCoords = 1;
+ ctx->_NeedEyeCoords = GL_TRUE;
/* Check if the truth-value interpretations of the bitfields have
@@ -1294,8 +1294,8 @@ _mesa_init_lighting( GLcontext *ctx )
}
/* Miscellaneous */
- ctx->Light._NeedEyeCoords = 0;
- ctx->_NeedEyeCoords = 0;
+ ctx->Light._NeedEyeCoords = GL_FALSE;
+ ctx->_NeedEyeCoords = GL_FALSE;
ctx->_ModelViewInvScale = 1.0;
}