internal/mipmap: Skip color scaling when possible

This commit is contained in:
Hajime Hoshi 2021-09-06 12:11:52 +09:00
parent 7f3bd1bbd5
commit f7738b812b

View File

@ -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)