cygwin issue with shader file reloading
rogerallen opened this issue · comments
Roger Allen commented
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)
Roger Allen commented
Ah, .getPath
says src\sot\throb.glsl
and :shader-filename
is src/sot/throb.glsl
Need to normalize this somehow.
Roger Allen commented
Trying to address this with 3c4dd81