mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
parent
ee2f891fcc
commit
09bd8b6f4a
@ -435,7 +435,6 @@ func (g *Graphics) availableBuffer(length uintptr) mtl.Buffer {
|
|||||||
return bufs[a].Length() < bufs[b].Length()
|
return bufs[a].Length() < bufs[b].Length()
|
||||||
})
|
})
|
||||||
for _, b := range bufs[maxUnusedBuffers:] {
|
for _, b := range bufs[maxUnusedBuffers:] {
|
||||||
println("delete!", b.Length())
|
|
||||||
delete(g.unusedBuffers, b)
|
delete(g.unusedBuffers, b)
|
||||||
b.Release()
|
b.Release()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user