mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +01:00
restorable: Bug fix: Lock before resolving stale states
This commit is contained in:
parent
9dd501720e
commit
14ce0c1bcb
@ -57,7 +57,7 @@ var theImages = &images{
|
||||
// ResolveStaleImages is intended to be called at the end of a frame.
|
||||
func ResolveStaleImages() {
|
||||
// Until the begin o the frame (by RestoreIfNeeded, any operations are locked.
|
||||
defer theImages.m.Lock()
|
||||
theImages.m.Lock()
|
||||
|
||||
graphicscommand.FlushCommands()
|
||||
if !needsRestoring() {
|
||||
|
Loading…
Reference in New Issue
Block a user