mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
graphics: imageImpl.restorable might be nil when restoring
This commit is contained in:
parent
53952100d3
commit
a1885458fb
@ -220,6 +220,9 @@ func (i *imageImpl) resetPixelsIfDependingOn(target *imageImpl, context *opengl.
|
||||
func (i *imageImpl) hasDependency() bool {
|
||||
i.m.Lock()
|
||||
defer i.m.Unlock()
|
||||
if i.restorable == nil {
|
||||
return false
|
||||
}
|
||||
return i.restorable.HasDependency()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user