mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +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
|
//export commandBufferCompletedCallback
|
||||||
func commandBufferCompletedCallback(commandBuffer unsafe.Pointer) {
|
func commandBufferCompletedCallback(commandBuffer unsafe.Pointer) {
|
||||||
f := commandBufferCompletedHandlers[commandBuffer]
|
|
||||||
|
|
||||||
commandBufferCompletedHandlersM.Lock()
|
commandBufferCompletedHandlersM.Lock()
|
||||||
|
f := commandBufferCompletedHandlers[commandBuffer]
|
||||||
delete(commandBufferCompletedHandlers, commandBuffer)
|
delete(commandBufferCompletedHandlers, commandBuffer)
|
||||||
commandBufferCompletedHandlersM.Unlock()
|
commandBufferCompletedHandlersM.Unlock()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user