Reset texture cache earlier
This commit is contained in:
parent
04318f0b85
commit
37805317a4
@ -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?))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user