X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Finstancescene.cpp;h=b533bae5fac75e843bf23604004e7169676a0513;hp=bbaf49ed29731da8a2f94ea9093ebea0b6745366;hb=ca52c492bd4f2fa1a1db3a85e50eaf7c43474830;hpb=d031a80ea06e3ccd01041e9c6024fa62adf25160 diff --git a/source/instancescene.cpp b/source/instancescene.cpp index bbaf49ed..b533bae5 100644 --- a/source/instancescene.cpp +++ b/source/instancescene.cpp @@ -22,14 +22,14 @@ void InstanceScene::remove(Renderable &r) } } -void InstanceScene::setup_frame() const +void InstanceScene::setup_frame(Renderer &renderer) { for(InstanceMap::const_iterator i=renderables.begin(); i!=renderables.end(); ++i) for(RenderableSet::const_iterator j=i->second.begin(); j!=i->second.end(); ++j) - (*j)->setup_frame(); + (*j)->setup_frame(renderer); } -void InstanceScene::finish_frame() const +void InstanceScene::finish_frame() { for(InstanceMap::const_iterator i=renderables.begin(); i!=renderables.end(); ++i) for(RenderableSet::const_iterator j=i->second.begin(); j!=i->second.end(); ++j)