diff --git a/src/renderer/painter_icon.cpp b/src/renderer/painter_icon.cpp index 3ea104887..f720a2400 100644 --- a/src/renderer/painter_icon.cpp +++ b/src/renderer/painter_icon.cpp @@ -20,7 +20,7 @@ void Painter::renderIcon(IconBucket& bucket, std::shared_ptr layer_d SpriteAtlas &spriteAtlas = *map.getSpriteAtlas(); useProgram(iconShader->program); - iconShader->setMatrix(vtxMatrix); + iconShader->setMatrix(matrix); // TODO: update // iconShader->setColor(color); iconShader->setImage(0); diff --git a/src/renderer/painter_text.cpp b/src/renderer/painter_text.cpp index cc5acbcab..40a4edf89 100644 --- a/src/renderer/painter_text.cpp +++ b/src/renderer/painter_text.cpp @@ -28,7 +28,7 @@ void Painter::renderText(TextBucket& bucket, std::shared_ptr layer_d // const mat4 &vtxMatrix = translatedMatrix(properties.translate, id, properties.translateAnchor); useProgram(textShader->program); - textShader->setMatrix(vtxMatrix); + textShader->setMatrix(matrix); textShader->setExtrudeMatrix(exMatrix); GlyphAtlas &glyphAtlas = *map.getGlyphAtlas();