diff --git a/internal/ui/image.go b/internal/ui/image.go index a4521fa55..12b3ec1d5 100644 --- a/internal/ui/image.go +++ b/internal/ui/image.go @@ -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 }