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 4febf6faaa56ba4d3b30b1bf50e8c6d54a17cb89..44feeb507e9f594b0828a2ad0b514d8427e4d098 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.
                                 */