mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
Revert "restorable: Don't record pixels when restoring is disabled"
This reverts commit aad7bdc64d
.
Reason: This causes application freezing at least on macOS
This commit is contained in:
parent
204b0e72d6
commit
bcd9db669d
@ -189,11 +189,6 @@ func (i *Image) ReplacePixels(pixels []byte, x, y, width, height int) {
|
||||
}
|
||||
i.image.ReplacePixels(pixels, x, y, width, height)
|
||||
|
||||
if !IsRestoringEnabled() {
|
||||
i.makeStale()
|
||||
return
|
||||
}
|
||||
|
||||
if x == 0 && y == 0 && width == w && height == h {
|
||||
if pixels != nil {
|
||||
if i.basePixels == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user