From: Mikko Rasa Date: Sat, 19 Nov 2016 12:43:31 +0000 (+0200) Subject: Update Renderer matrix manipulation calls X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=a87517d7595e71ddcbd8df1d2f637e0f9db0467f;p=libs%2Fgltk.git Update Renderer matrix manipulation calls --- diff --git a/source/widget.cpp b/source/widget.cpp index 5fc2082..aa05675 100644 --- a/source/widget.cpp +++ b/source/widget.cpp @@ -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) {