restorable: Reset states after restoring

This commit is contained in:
Hajime Hoshi 2016-09-04 02:11:02 +09:00
parent d386f57ac6
commit 865a45e052

View File

@ -236,7 +236,10 @@ func (p *Image) RestoreImage(context *opengl.Context) error {
if err != nil {
return err
}
// TODO: Reset other values?
p.basePixels = nil
p.baseColor = color.RGBA{}
p.drawImageHistory = nil
p.stale = false
return nil
}
if p.stale {