mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +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