From cfaff8c0cb8a9282363004aca7c5fc38fa2060f7 Mon Sep 17 00:00:00 2001 From: faiface Date: Sun, 7 May 2017 21:12:48 +0200 Subject: [PATCH] minor change --- text/text.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/text/text.go b/text/text.go index be1f098..ae37b14 100644 --- a/text/text.go +++ b/text/text.go @@ -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) }