From 170ddd70a56d1738664dc2456508aecdf677d5a8 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 8 Nov 2020 04:12:48 +0900 Subject: [PATCH] ebiten: Add comments --- image.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/image.go b/image.go index 2e442de72..6f342bd9e 100644 --- a/image.go +++ b/image.go @@ -699,6 +699,8 @@ func (i *Image) Set(x, y int, clr color.Color) { // Calling Dispose is not mandatory. GC automatically collects internal resources that no objects refer to. // However, calling Dispose explicitly is helpful if memory usage matters. // +// If the image is a sub-image, Dispose does nothing. +// // When the image is disposed, Dipose does nothing. func (i *Image) Dispose() { i.copyCheck()