diff --git a/internal/graphicscommand/command.go b/internal/graphicscommand/command.go index 085faf227..e885b6a7f 100644 --- a/internal/graphicscommand/command.go +++ b/internal/graphicscommand/command.go @@ -29,6 +29,9 @@ func SetGraphicsDriver(driver driver.Graphics) { } func NeedsRestoring() bool { + if theGraphicsDriver == nil { + return false + } return theGraphicsDriver.NeedsRestoring() } diff --git a/internal/restorable/images.go b/internal/restorable/images.go index 44f04f83a..b7c13d075 100644 --- a/internal/restorable/images.go +++ b/internal/restorable/images.go @@ -21,7 +21,7 @@ import ( ) // forceRestoring reports whether restoring forcely happens or not. -var forceRestoring = true +var forceRestoring = false // NeedsRestoring reports whether restoring process works or not. func NeedsRestoring() bool {