mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/mipmap: Skip color scaling when possible
This commit is contained in:
parent
7f3bd1bbd5
commit
f7738b812b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user