mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
restorable: Bug fix: semantic inconsistency at forceRestoring
This commit is contained in:
parent
da4fabeaa5
commit
83254d30d9
@ -29,6 +29,9 @@ func SetGraphicsDriver(driver driver.Graphics) {
|
||||
}
|
||||
|
||||
func NeedsRestoring() bool {
|
||||
if theGraphicsDriver == nil {
|
||||
return false
|
||||
}
|
||||
return theGraphicsDriver.NeedsRestoring()
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user