internal/graphicscommand: remove unnecessary references to drawTrianglesCommand

This commit is contained in:
Hajime Hoshi 2023-10-08 17:18:16 +09:00
parent fd1083808c
commit d2dd62b6db

View File

@ -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
}