mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/graphicscommand: bug fix: clear buffers when disposing an image
Closes #2423
This commit is contained in:
parent
5eceabd172
commit
b096ba700a
@ -105,6 +105,7 @@ func (i *Image) flushBufferedWritePixels() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (i *Image) Dispose() {
|
func (i *Image) Dispose() {
|
||||||
|
i.bufferedWP = nil
|
||||||
c := &disposeImageCommand{
|
c := &disposeImageCommand{
|
||||||
target: i,
|
target: i,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user