From 793aad26811daa88d2b1174b7a747298ad9f2e37 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 5 Jul 2016 03:01:32 +0900 Subject: [PATCH] graphics: Rename restorePixels -> restore --- graphicscontext.go | 2 +- image.go | 4 ++-- imageimpl.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/graphicscontext.go b/graphicscontext.go index 683015ace..134c68a1e 100644 --- a/graphicscontext.go +++ b/graphicscontext.go @@ -162,7 +162,7 @@ func (c *graphicsContext) restore(context *opengl.Context) error { if err := graphics.Reset(context); err != nil { return err } - if err := theImagesForRestoring.restorePixels(context); err != nil { + if err := theImagesForRestoring.restore(context); err != nil { return err } return nil diff --git a/image.go b/image.go index 7513ab203..27692302e 100644 --- a/image.go +++ b/image.go @@ -60,7 +60,7 @@ func (i *images) savePixels(context *opengl.Context) error { return nil } -func (i *images) restorePixels(context *opengl.Context) error { +func (i *images) restore(context *opengl.Context) error { i.m.Lock() defer i.m.Unlock() // Dispose all images first because framebuffer/texture numbers can be reused. @@ -75,7 +75,7 @@ func (i *images) restorePixels(context *opengl.Context) error { } } for img := range i.images { - if err := img.restorePixels(); err != nil { + if err := img.restore(); err != nil { return err } } diff --git a/imageimpl.go b/imageimpl.go index 4338fb0b2..0b71478bc 100644 --- a/imageimpl.go +++ b/imageimpl.go @@ -193,7 +193,7 @@ func (i *imageImpl) savePixels(context *opengl.Context) error { return nil } -func (i *imageImpl) restorePixels() error { +func (i *imageImpl) restore() error { i.m.Lock() defer i.m.Unlock() if i.disposed {