mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +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 {
|
func NeedsRestoring() bool {
|
||||||
|
if theGraphicsDriver == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return theGraphicsDriver.NeedsRestoring()
|
return theGraphicsDriver.NeedsRestoring()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// forceRestoring reports whether restoring forcely happens or not.
|
// forceRestoring reports whether restoring forcely happens or not.
|
||||||
var forceRestoring = true
|
var forceRestoring = false
|
||||||
|
|
||||||
// NeedsRestoring reports whether restoring process works or not.
|
// NeedsRestoring reports whether restoring process works or not.
|
||||||
func NeedsRestoring() bool {
|
func NeedsRestoring() bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user