From 32e773cf105011bbb95e1b85d621459c218f219b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 12 Jun 2016 00:47:44 +0900 Subject: [PATCH] Refactoring --- image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.go b/image.go index 8c7ec3288..72d484810 100644 --- a/image.go +++ b/image.go @@ -267,7 +267,7 @@ func (i *imageImpl) restorePixels(context *opengl.Context) error { for j := 0; j < i.height; j++ { copy(img.Pix[j*img.Stride:], i.pixels[j*i.width*4:(j+1)*i.width*4]) } - texture, framebuffer, err := graphics.NewImageFromImage(img, glFilter(ui.GLContext(), i.filter)) + texture, framebuffer, err := graphics.NewImageFromImage(img, glFilter(context, i.filter)) if err != nil { return err }