mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +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{}
|
||||
}
|
||||
v := p.pool[len(p.pool)-1]
|
||||
p.pool[len(p.pool)-1] = nil
|
||||
p.pool = p.pool[:len(p.pool)-1]
|
||||
return v
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user