From 745a69aeaad539f54aa4d381e088655d856035ce Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 24 Feb 2023 18:25:17 +0900 Subject: [PATCH] internal/restorable: update comments --- internal/restorable/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/restorable/image.go b/internal/restorable/image.go index 41703c1bd..21cd5058f 100644 --- a/internal/restorable/image.go +++ b/internal/restorable/image.go @@ -336,7 +336,7 @@ func (i *Image) WritePixels(pixels []byte, x, y, width, height int) { return } - // Records for DrawTriangles cannot come after records for WritePixels. + // Records for DrawTriangles cannot come before records for WritePixels. if len(i.drawTrianglesHistory) > 0 { i.makeStale(image.Rect(0, 0, i.width, i.height)) return