diff --git a/Graphics/Geom.cpp b/Graphics/Geom.cpp index 9b1727eb52a87e01f50c3ca9459e1596aee148fe..ef09cd3b0021a2f186df7ef9b4b43f3d1bb0d2c4 100644 --- a/Graphics/Geom.cpp +++ b/Graphics/Geom.cpp @@ -1,4 +1,4 @@ -// $Id: Geom.cpp,v 1.134 2007-08-03 00:44:28 geuzaine Exp $ +// $Id: Geom.cpp,v 1.135 2007-08-07 20:27:20 anand Exp $ // // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // @@ -269,7 +269,7 @@ class drawGFace { else glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); - glEnable(GL_LIGHTING); + if(CTX.geom.light) glEnable(GL_LIGHTING); glBegin(GL_QUADS); for(unsigned int i = 1; i < gr.size(); i++){ for(unsigned int j = 1; j < gr[0].size(); j++){