mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/atlas: remove a wrong comment
(*restrable.Image).ReplacePixels can take overlapped regions. See TestOverlappedPixels. Updates #2180
This commit is contained in:
parent
80c26e6dcc
commit
dd805c9414
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user