From f7738b812b3ee654d27266cc19788ae2c12346a6 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 6 Sep 2021 12:11:52 +0900 Subject: [PATCH] internal/mipmap: Skip color scaling when possible --- internal/mipmap/mipmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/mipmap/mipmap.go b/internal/mipmap/mipmap.go index 7d1ae8d24..d76796abe 100644 --- a/internal/mipmap/mipmap.go +++ b/internal/mipmap/mipmap.go @@ -123,7 +123,7 @@ func (m *Mipmap) DrawTriangles(srcs [graphics.ShaderImageNum]*Mipmap, vertices [ } } - if colorm.ScaleOnly() { + if !colorm.IsIdentity() && colorm.ScaleOnly() { cr := colorm.At(0, 0) cg := colorm.At(1, 1) cb := colorm.At(2, 2)