]> git.tdb.fi Git - libs/gltk.git/commitdiff
Update Renderer matrix manipulation calls
authorMikko Rasa <tdb@tdb.fi>
Sat, 19 Nov 2016 12:43:31 +0000 (14:43 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 19 Nov 2016 12:43:31 +0000 (14:43 +0200)
source/widget.cpp

index 5fc208268d06e117d7b181b6542154fbf47eb450..aa05675b97c1c989c499916247173785593dad5c 100644 (file)
@@ -215,8 +215,8 @@ void Widget::render(GL::Renderer &renderer) const
        if(!style)
                throw logic_error(format("Attempt to render a widget with null style (class=\"%s\", style_name=\"%s\")", get_class(), style_name));
 
-       GL::MatrixStack::Push _pushm(renderer.matrix_stack());
-       renderer.matrix_stack() *= GL::Matrix::translation(geom.x, geom.y, 0);
+       GL::Renderer::Push _push(renderer);
+       renderer.transform(GL::Matrix::translation(geom.x, geom.y, 0));
        const PartCache::PartList &parts = part_cache.get_parts();
        for(PartCache::PartList::const_iterator i=parts.begin(); i!=parts.end(); ++i)
        {