mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
graphicsdriver/metal/mtl: Bug fix: Fix the guard range
This commit is contained in:
parent
aaff18ecf7
commit
e09f3aa286
@ -587,9 +587,8 @@ func (cb CommandBuffer) AddCompletedHandler(f func()) {
|
||||
|
||||
//export commandBufferCompletedCallback
|
||||
func commandBufferCompletedCallback(commandBuffer unsafe.Pointer) {
|
||||
f := commandBufferCompletedHandlers[commandBuffer]
|
||||
|
||||
commandBufferCompletedHandlersM.Lock()
|
||||
f := commandBufferCompletedHandlers[commandBuffer]
|
||||
delete(commandBufferCompletedHandlers, commandBuffer)
|
||||
commandBufferCompletedHandlersM.Unlock()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user