mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +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 {
|
for _, t := range g.tmpTextures {
|
||||||
t.Release()
|
t.Release()
|
||||||
}
|
}
|
||||||
g.tmpTextures = nil
|
g.tmpTextures = g.tmpTextures[:0]
|
||||||
|
|
||||||
g.cb = mtl.CommandBuffer{}
|
g.cb = mtl.CommandBuffer{}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user