Skip to content

Commit 20e6607

Browse files
Fix AIR startup frame timing re-entrancy
1 parent 6f7adf0 commit 20e6607

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/lime/app/Application.hx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ class Application extends Module
166166
__vsyncMode = VSyncMode.Off;
167167

168168
__backend = new ApplicationBackend(this);
169+
__backend.configureFrameTiming(__frameProfile, __frameRate, __copyFrameOptions(__frameOptions));
170+
__backend.setVSyncMode(__vsyncMode);
169171

170172
__registerLimeModule(this);
171173

@@ -750,8 +752,11 @@ class Application extends Module
750752
__frameConfigured = true;
751753
}
752754

753-
__backend.configureFrameTiming(__frameProfile, __frameRate, __copyFrameOptions(__frameOptions));
754-
__backend.setVSyncMode(__vsyncMode);
755+
if (__backend != null)
756+
{
757+
__backend.configureFrameTiming(__frameProfile, __frameRate, __copyFrameOptions(__frameOptions));
758+
__backend.setVSyncMode(__vsyncMode);
759+
}
755760
}
756761

757762
@:noCompletion private function __copyFrameOptions(value:FrameOptions):FrameOptions

0 commit comments

Comments
 (0)