Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cygwin issue with shader file reloading #15

Closed
rogerallen opened this issue Aug 5, 2013 · 2 comments
Closed

cygwin issue with shader file reloading #15

rogerallen opened this issue Aug 5, 2013 · 2 comments
Labels

Comments

@rogerallen
Copy link
Member

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)

@rogerallen
Copy link
Member Author

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

@rogerallen
Copy link
Member Author

Trying to address this with 3c4dd81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant