diff options
author | David Thompson <dthompson2@worcester.edu> | 2021-10-18 14:22:11 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2021-10-18 14:22:11 -0400 |
commit | a1a9494515a25d00f4065e7bfa145acec4da8b73 (patch) | |
tree | 06471da8c4fa5963348fdbc9d5f0752af4b27fb3 | |
parent | ef271a096602637755544beb9db94cf20a8a9966 (diff) |
kernel: Activate within context of the game loop.
-rw-r--r-- | starling/kernel.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/starling/kernel.scm b/starling/kernel.scm index 42107b7..89c4fd4 100644 --- a/starling/kernel.scm +++ b/starling/kernel.scm @@ -365,9 +365,9 @@ (parameterize ((current-kernel kernel) (current-graphics-engine (make-graphics-engine (gl-context kernel))) (current-window (window kernel))) - (activate kernel) - (push-scene kernel (thunk)) - (run-game* #:init (const #t) + (run-game* #:init (lambda () + (activate kernel) + (push-scene kernel (thunk))) #:update (lambda (dt) (update-tree kernel dt)) #:render (lambda (alpha) (render-tree kernel alpha)) #:error (lambda (stack key args) |