internal/atlas: remove a wrong comment

(*restrable.Image).ReplacePixels can take overlapped regions.
See TestOverlappedPixels.

Updates #2180
This commit is contained in:
Hajime Hoshi 2022-07-05 13:59:21 +09:00
parent 80c26e6dcc
commit dd805c9414

View File

@ -495,8 +495,6 @@ func (i *Image) drawTriangles(srcs [graphics.ShaderImageNum]*Image, vertices []f
}
// ReplacePixels replaces the pixels on the image.
// ReplacePixels cannot take a region due to the current implementation.
// internal/restorable.Image has to record the areas of replaced pixels, and the areas must not be overlapped so far.
func (i *Image) ReplacePixels(pix []byte, mask []byte) {
backendsM.Lock()
defer backendsM.Unlock()