internal/graphicsdriver/metal: Optimization

This commit is contained in:
Hajime Hoshi 2021-02-27 02:30:20 +09:00
parent 6b3c51921c
commit 673627c4d4

View File

@ -384,7 +384,7 @@ func (g *Graphics) flushIfNeeded(present bool) {
for _, t := range g.tmpTextures {
t.Release()
}
g.tmpTextures = nil
g.tmpTextures = g.tmpTextures[:0]
g.cb = mtl.CommandBuffer{}
}