]> git.tdb.fi Git - libs/gl.git/blobdiff - tools/viewer.cpp
Don't use an index when attaching lights
[libs/gl.git] / tools / viewer.cpp
index 674fbf16aafed00631b4dc6e42f13a8f42c5c504..e7af702418cc871ce5567cc016b1cf2b27166ab1 100644 (file)
@@ -215,7 +215,7 @@ Viewer::Viewer(int argc, char **argv):
        mouse.signal_axis_motion.connect(sigc::bind_return(sigc::mem_fun(this, &Viewer::axis_motion), false));
 
        light.set_position(GL::Vector4(0, 0, 1, 0));
-       lighting.attach(0, light);
+       lighting.attach(light);
 
        camera.set_up_direction(GL::Vector3(0, 0, 1));
        update_camera();