mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-02 22:14:29 +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 {
|
func (i *imageImpl) hasDependency() bool {
|
||||||
i.m.Lock()
|
i.m.Lock()
|
||||||
defer i.m.Unlock()
|
defer i.m.Unlock()
|
||||||
|
if i.restorable == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return i.restorable.HasDependency()
|
return i.restorable.HasDependency()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user