restorable: Refactoring

This commit is contained in:
Hajime Hoshi 2018-06-10 18:40:46 +09:00
parent c782380a1c
commit 03079ba067

View File

@ -375,11 +375,9 @@ func (i *Image) restore() error {
if c.image.hasDependency() { if c.image.hasDependency() {
panic("not reached") panic("not reached")
} }
vs := []float32{}
for _, v := range c.vertices { for _, v := range c.vertices {
vs = append(vs, v...) gimg.DrawImage(c.image.image, v, quadIndices, c.colorm, c.mode, c.filter)
} }
gimg.DrawImage(c.image.image, vs, quadIndices, c.colorm, c.mode, c.filter)
} }
i.image = gimg i.image = gimg