graphicsdriver/metal: Call Release on the main thread

This commit is contained in:
Hajime Hoshi 2018-12-20 23:08:40 +09:00
parent aa8f4cff8d
commit d520749dcb

View File

@ -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 {