Fix wrong nesting for catch
This commit is contained in:
parent
40f3ebf5d9
commit
c33539ed19
@ -88,11 +88,11 @@
|
|||||||
(rl/with-drawing!
|
(rl/with-drawing!
|
||||||
(draw config updated-state)
|
(draw config updated-state)
|
||||||
(w/watch! (watch-fn config updated-state))
|
(w/watch! (watch-fn config updated-state))
|
||||||
(swap! game-state updated-state)
|
(reset! game-state updated-state)))
|
||||||
(catch Throwable t
|
(catch Throwable t
|
||||||
(doseq [buf @buffered-objs]
|
(doseq [buf @buffered-objs]
|
||||||
(restore! buf))
|
(when buf (restore! buf)))
|
||||||
(report-exception! t))))))))
|
(report-exception! t))))))
|
||||||
(try
|
(try
|
||||||
(when unload
|
(when unload
|
||||||
(doseq [[_ tex] @texture-cache]
|
(doseq [[_ tex] @texture-cache]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user