Correct sense of ctx->_ForceEyeCoords (Felix Kuhling)
authorKeith Whitwell <keith@tungstengraphics.com>
Sat, 27 Dec 2003 20:03:26 +0000 (20:03 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Sat, 27 Dec 2003 20:03:26 +0000 (20:03 +0000)
src/mesa/main/light.c

index 4febf6f..44feeb5 100644 (file)
@@ -1180,7 +1180,7 @@ _mesa_update_tnl_spaces( GLcontext *ctx, GLuint new_state )
 void
 _mesa_allow_light_in_model( GLcontext *ctx, GLboolean flag )
 {
-   ctx->_ForceEyeCoords = flag;
+   ctx->_ForceEyeCoords = !flag;
    ctx->NewState |= _NEW_POINT;        /* one of the bits from
                                 * _MESA_NEW_NEED_EYE_COORDS.
                                 */