summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-10-18 14:22:11 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-10-18 14:22:11 -0400
commita1a9494515a25d00f4065e7bfa145acec4da8b73 (patch)
tree06471da8c4fa5963348fdbc9d5f0752af4b27fb3
parentef271a096602637755544beb9db94cf20a8a9966 (diff)
kernel: Activate within context of the game loop.
-rw-r--r--starling/kernel.scm6
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)