-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Labels
Description
On the overtone email list, Andrew Voron reports:
when I call (shadertone.shader/start "examples\raymarching1.glsl") - all updates fine on windows.
[But with "examples/raymarching1.glsl"] Code fails in the function
(defn- if-match-reload-shader
[files]
(if @watcher-just-started
;; allow first, automatic call to pass unnoticed
(swap! watcher-just-started (fn [x] false))
;; otherwise do the reload check
(doseq [f files]
(when (= (.getPath f) (:shader-filename @globals))
;; set a flag that the opengl thread will use
(dosync (ref-set reload-shader true))))))when it trys to compare (.getPath f) and (:shader-filename @Globals)