mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 12:32:05 +01:00
internal/graphicscommand: remove unnecessary references to drawTrianglesCommand
This commit is contained in:
parent
fd1083808c
commit
d2dd62b6db
@ -49,6 +49,7 @@ func (p *drawTrianglesCommandPool) get() *drawTrianglesCommand {
|
|||||||
return &drawTrianglesCommand{}
|
return &drawTrianglesCommand{}
|
||||||
}
|
}
|
||||||
v := p.pool[len(p.pool)-1]
|
v := p.pool[len(p.pool)-1]
|
||||||
|
p.pool[len(p.pool)-1] = nil
|
||||||
p.pool = p.pool[:len(p.pool)-1]
|
p.pool = p.pool[:len(p.pool)-1]
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user