mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/graphicsdriver/metal: Optimization
This commit is contained in:
parent
6b3c51921c
commit
673627c4d4
@ -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{}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user