graphics: Ensure the image is not disposed when restorableImage() is called

This commit is contained in:
Hajime Hoshi 2018-03-03 20:36:33 +09:00
parent caf4e9504f
commit 4b4404bc7e

View File

@ -363,7 +363,7 @@ func (i *Image) restorableImage() *restorable.Image {
if i.sharedImagePart != nil {
return i.sharedImagePart.image()
}
return nil
panic("not reached")
}
// ReplacePixels replaces the pixels of the image with p.