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)
{