fix matrices

This commit is contained in:
Konstantin Käfer
2014-06-24 19:01:12 +02:00
parent eb84492556
commit 79643d973a
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ void Painter::renderIcon(IconBucket& bucket, std::shared_ptr<StyleLayer> layer_d
SpriteAtlas &spriteAtlas = *map.getSpriteAtlas();
useProgram(iconShader->program);
iconShader->setMatrix(vtxMatrix);
iconShader->setMatrix(matrix);
// TODO: update
// iconShader->setColor(color);
iconShader->setImage(0);

View File

@@ -28,7 +28,7 @@ void Painter::renderText(TextBucket& bucket, std::shared_ptr<StyleLayer> 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();