]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.cpp
Use Renderer to bind Lighting
[libs/gl.git] / source / pipeline.cpp
index c6260f0ee73f15d060436ec99edf3d71aa57a3bf..0df03ca7df7231931874355f855de9c3284cd148 100644 (file)
@@ -153,7 +153,7 @@ void Pipeline::render(Renderer &renderer, const Tag &tag) const
        {
                Bind bind_depth_test(i->get_depth_test());
                Bind bind_blend(i->get_blend());
-               Bind bind_lighting(i->get_lighting());
+               renderer.set_lighting(i->get_lighting());
 
                for(vector<Slot>::const_iterator j=renderables.begin(); j!=renderables.end(); ++j)
                        if(j->passes.empty() || j->passes.count(i->get_tag()))