Reset texture cache earlier
This commit is contained in:
parent
04318f0b85
commit
37805317a4
@ -40,6 +40,7 @@
|
|||||||
(if (rl/window-ready?)
|
(if (rl/window-ready?)
|
||||||
(println "Warning: Existing raylib window open, ignoring!")
|
(println "Warning: Existing raylib window open, ignoring!")
|
||||||
(do
|
(do
|
||||||
|
(reset! texture-cache {})
|
||||||
(rl/set-trace-log-level! rl/log-warning)
|
(rl/set-trace-log-level! rl/log-warning)
|
||||||
(rl/init-window! width height title)
|
(rl/init-window! width height title)
|
||||||
(rl/set-target-fps! 30)
|
(rl/set-target-fps! 30)
|
||||||
@ -49,7 +50,6 @@
|
|||||||
(reset! game-config {:config-path config-path :config config})
|
(reset! game-config {:config-path config-path :config config})
|
||||||
(try
|
(try
|
||||||
(reset! game-state (init config))
|
(reset! game-state (init config))
|
||||||
(reset! texture-cache {})
|
|
||||||
(catch Throwable t
|
(catch Throwable t
|
||||||
(report-exception! t)))
|
(report-exception! t)))
|
||||||
(while (not (rl/window-should-close?))
|
(while (not (rl/window-should-close?))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user