From 03079ba0677325b7b81340dbcc7fd958fe470423 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 10 Jun 2018 18:40:46 +0900 Subject: [PATCH] restorable: Refactoring --- internal/restorable/image.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/restorable/image.go b/internal/restorable/image.go index b9c7c8925..14f9e3375 100644 --- a/internal/restorable/image.go +++ b/internal/restorable/image.go @@ -375,11 +375,9 @@ func (i *Image) restore() error { if c.image.hasDependency() { panic("not reached") } - vs := []float32{} 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