mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-27 04:08:53 +01:00
internal/buffered: remove unnecessary deferred functions
This commit is contained in:
parent
58847e023d
commit
3f1b7e78b8
@ -59,18 +59,6 @@ func (i *Image) invalidatePixels() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (i *Image) MarkDisposed() {
|
func (i *Image) MarkDisposed() {
|
||||||
i.invalidatePixels()
|
|
||||||
if maybeCanAddDelayedCommand() {
|
|
||||||
if tryAddDelayedCommand(func() {
|
|
||||||
i.markDisposedImpl()
|
|
||||||
}) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
i.markDisposedImpl()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (i *Image) markDisposedImpl() {
|
|
||||||
i.img.MarkDisposed()
|
i.img.MarkDisposed()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user