mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// TODO: Reset other values?
|
p.basePixels = nil
|
||||||
|
p.baseColor = color.RGBA{}
|
||||||
|
p.drawImageHistory = nil
|
||||||
|
p.stale = false
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if p.stale {
|
if p.stale {
|
||||||
|
Loading…
Reference in New Issue
Block a user