mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/graphicscommand: remove unnecessary conditions
Now a Kage shader is always used.
This commit is contained in:
parent
a9574627e8
commit
6fc9d9316d
@ -402,7 +402,6 @@ func (c *drawTrianglesCommand) CanMergeWithDrawTrianglesCommand(dst *Image, srcs
|
|||||||
if c.shader != shader {
|
if c.shader != shader {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if c.shader != nil {
|
|
||||||
if len(c.uniforms) != len(uniforms) {
|
if len(c.uniforms) != len(uniforms) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@ -416,7 +415,6 @@ func (c *drawTrianglesCommand) CanMergeWithDrawTrianglesCommand(dst *Image, srcs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if c.dst != dst {
|
if c.dst != dst {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user