mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
restorable: Reset states after restoring
This commit is contained in:
parent
d386f57ac6
commit
865a45e052
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user