diff --git a/internal/mipmap/mipmap.go b/internal/mipmap/mipmap.go index 526416cb7..45b7f9c0a 100644 --- a/internal/mipmap/mipmap.go +++ b/internal/mipmap/mipmap.go @@ -49,7 +49,7 @@ func (m *Mipmap) DumpScreenshot(graphicsDriver graphicsdriver.Graphics, name str return m.orig.DumpScreenshot(graphicsDriver, name, blackbg) } -func (m *Mipmap) ReplacePixels(pix []byte, x, y, width, height int) { +func (m *Mipmap) WritePixels(pix []byte, x, y, width, height int) { m.orig.WritePixels(pix, x, y, width, height) m.disposeMipmaps() } diff --git a/internal/ui/image.go b/internal/ui/image.go index 904f5962a..6f3c9b110 100644 --- a/internal/ui/image.go +++ b/internal/ui/image.go @@ -72,7 +72,7 @@ func (i *Image) DrawTriangles(srcs [graphics.ShaderImageCount]*Image, vertices [ } func (i *Image) ReplacePixels(pix []byte, x, y, width, height int) { - i.mipmap.ReplacePixels(pix, x, y, width, height) + i.mipmap.WritePixels(pix, x, y, width, height) } func (i *Image) ReadPixels(pixels []byte, x, y, width, height int) {