Fix an unusual case where if 'iterate_per_light' wasn't set, and you set the max_lights on a pass but there were no lights left, even the first pass wouldn't render. The code here was meant to avoid rendering second+ passes where start_light was set and we ran out of lights.
Fix an unusual case where if 'iterate_per_light' wasn't set, and you set the max_lights on a pass but there were no lights left, even the first pass wouldn't render. The code here was meant to avoid rendering second+ passes where start_light was set and we ran out of lights.

--HG--
branch : v1-6
extra : convert_revision : svn%3A8631bf8a-c64b-0410-883c-f3eb003322f7/branches/v1-6%40128

vancepym/ogre,ehsan/ogre,ehsan/ogre,jhu-lcsr-forks/ogre,bhlzlx/ogre,vancepym/ogre,ruleless/ogre,ruleless/ogre,largerussiangames/ogre,ehsan/ogre,vancepym/ogre,bhlzlx/ogre,bhlzlx/ogre,bhlzlx/ogre,jhu-lcsr-forks/ogre,largerussiangames/ogre,vancepym/ogre,bhlzlx/ogre,ehsan/ogre,nezticle/ogre,ruleless/ogre,vancepym/ogre,ruleless/ogre,nezticle/ogre,ruleless/ogre,largerussiangames/ogre,ruleless/ogre,jhu-lcsr-forks/ogre,ehsan/ogre,bhlzlx/ogre,largerussiangames/ogre,nezticle/ogre,jhu-lcsr-forks/ogre,nezticle/ogre,jhu-lcsr-forks/ogre