internal/ui: bug fix: crash when Image.MarkDisposed is called multiple times

Closes #2048
This commit is contained in:
Hajime Hoshi 2022-04-03 00:21:21 +09:00
parent 651c5693c6
commit b52a02a178

View File

@ -52,6 +52,9 @@ func newScreenFramebufferImage(width, height int) *Image {
}
func (i *Image) MarkDisposed() {
if i.mipmap == nil {
return
}
i.mipmap.MarkDisposed()
i.mipmap = nil
}