From a87517d7595e71ddcbd8df1d2f637e0f9db0467f Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 19 Nov 2016 14:43:31 +0200 Subject: [PATCH] Update Renderer matrix manipulation calls --- source/widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.45.2