]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/lighting.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / materials / lighting.cpp
index 6957126b6c3bfeef3ad37192c541454fecde2eef..d8e5400626ae43eb26221ebd92bd748bb8043972 100644 (file)
@@ -18,7 +18,7 @@ Lighting::Lighting()
        set_fog_color(Color(0.0f, 0.0f, 0.0f, 0.0f));
        set_fog_density(0.0f);
 
-       for(unsigned i=0; i<7; ++i)
+       for(unsigned i=0; i<6; ++i)
        {
                string base = format("light_sources[%d]", i);
                shdata.uniform(base+".position", Vector4(0, 0, 1, 0));