mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/graphicscommand: refactoring
This commit is contained in:
parent
a406904a51
commit
4ff9a12930
@ -368,10 +368,10 @@ func (c *drawTrianglesCommand) CanMergeWithDrawTrianglesCommand(dst *Image, srcs
|
||||
if c.blend != blend {
|
||||
return false
|
||||
}
|
||||
if c.evenOdd || evenOdd {
|
||||
if c.evenOdd && evenOdd {
|
||||
return !mightOverlapDstRegions(c.vertices, vertices)
|
||||
}
|
||||
if c.evenOdd != evenOdd {
|
||||
return false
|
||||
}
|
||||
if c.evenOdd && mightOverlapDstRegions(c.vertices, vertices) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user