minor change

This commit is contained in:
faiface 2017-05-07 21:12:48 +02:00
parent 2d1f61f746
commit cfaff8c0cb
1 changed files with 3 additions and 0 deletions

View File

@ -254,12 +254,15 @@ func (txt *Text) Draw(t pixel.Target) {
if txt.dirty {
txt.trans.SetLen(txt.tris.Len())
txt.trans.Update(&txt.tris)
for i := range txt.trans {
txt.trans[i].Position = txt.mat.Project(txt.trans[i].Position)
txt.trans[i].Color = txt.trans[i].Color.Mul(txt.col)
}
txt.transD.Dirty()
txt.dirty = false
}
txt.transD.Draw(t)
}