internal/restorable: update comments

This commit is contained in:
Hajime Hoshi 2023-02-24 18:25:17 +09:00
parent 4675c83a83
commit 745a69aeaa

View File

@ -336,7 +336,7 @@ func (i *Image) WritePixels(pixels []byte, x, y, width, height int) {
return return
} }
// Records for DrawTriangles cannot come after records for WritePixels. // Records for DrawTriangles cannot come before records for WritePixels.
if len(i.drawTrianglesHistory) > 0 { if len(i.drawTrianglesHistory) > 0 {
i.makeStale(image.Rect(0, 0, i.width, i.height)) i.makeStale(image.Rect(0, 0, i.width, i.height))
return return