From d2dd62b6dbe7300a652ab92d85043fc12b88ae89 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 8 Oct 2023 17:18:16 +0900 Subject: [PATCH] internal/graphicscommand: remove unnecessary references to drawTrianglesCommand --- internal/graphicscommand/command.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/graphicscommand/command.go b/internal/graphicscommand/command.go index 23ecbdff1..b3c070b39 100644 --- a/internal/graphicscommand/command.go +++ b/internal/graphicscommand/command.go @@ -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 }