From 37805317a4b02cfa2d6c6effd01827c43101ad7a Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Sat, 29 Aug 2026 18:21:15 +0700 Subject: [PATCH] Reset texture cache earlier --- src/engine.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine.clj b/src/engine.clj index 2ff2303..eb1471c 100644 --- a/src/engine.clj +++ b/src/engine.clj @@ -40,6 +40,7 @@ (if (rl/window-ready?) (println "Warning: Existing raylib window open, ignoring!") (do + (reset! texture-cache {}) (rl/set-trace-log-level! rl/log-warning) (rl/init-window! width height title) (rl/set-target-fps! 30) @@ -49,7 +50,6 @@ (reset! game-config {:config-path config-path :config config}) (try (reset! game-state (init config)) - (reset! texture-cache {}) (catch Throwable t (report-exception! t))) (while (not (rl/window-should-close?))