mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/graphicscommand: remove unnecessary conditions
Now a Kage shader is always used.
This commit is contained in:
parent
a9574627e8
commit
6fc9d9316d
@ -402,19 +402,17 @@ func (c *drawTrianglesCommand) CanMergeWithDrawTrianglesCommand(dst *Image, srcs
|
||||
if c.shader != shader {
|
||||
return false
|
||||
}
|
||||
if c.shader != nil {
|
||||
if len(c.uniforms) != len(uniforms) {
|
||||
if len(c.uniforms) != len(uniforms) {
|
||||
return false
|
||||
}
|
||||
for i := range c.uniforms {
|
||||
if len(c.uniforms[i]) != len(uniforms[i]) {
|
||||
return false
|
||||
}
|
||||
for i := range c.uniforms {
|
||||
if len(c.uniforms[i]) != len(uniforms[i]) {
|
||||
for j := range c.uniforms[i] {
|
||||
if c.uniforms[i][j] != uniforms[i][j] {
|
||||
return false
|
||||
}
|
||||
for j := range c.uniforms[i] {
|
||||
if c.uniforms[i][j] != uniforms[i][j] {
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if c.dst != dst {
|
||||
|
Loading…
Reference in New Issue
Block a user