overtone / shadertone

A mix of www.shadertoy.com and Overtone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cygwin issue with shader file reloading

rogerallen opened this issue · comments

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)

Ah, .getPath says src\sot\throb.glsl and :shader-filename is src/sot/throb.glsl
Need to normalize this somehow.

Trying to address this with 3c4dd81