]> git.tdb.fi Git - libs/gl.git/blobdiff - source/light.cpp
Drop Id tags and copyright notices from files
[libs/gl.git] / source / light.cpp
index 26cc896358d46f4a7de30cd0bd40e4d811f27ad8..39693c4091a6b1579885bf79104ef60e38ca0426 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include "except.h"
 #include "light.h"
 #include "misc.h"
@@ -118,6 +111,12 @@ void Light::unbind()
        }
 }
 
+void Light::unbind_from(unsigned i)
+{
+       activate(i);
+       unbind();
+}
+
 unsigned Light::current_unit = 0;
 vector<const Light *> Light::current_lights(1);