mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
graphicsdriver/metal: Call Release on the main thread
This commit is contained in:
parent
aa8f4cff8d
commit
d520749dcb
@ -552,7 +552,10 @@ func (i *Image) viewportSize() (int, int) {
|
||||
}
|
||||
|
||||
func (i *Image) Dispose() {
|
||||
i.texture.Release()
|
||||
mainthread.Run(func() error {
|
||||
i.texture.Release()
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
func (i *Image) IsInvalidated() bool {
|
||||
|
Loading…
Reference in New Issue
Block a user