master
Tom Gowan 6 years ago
parent bf6c59c40a
commit d15d28f6e6

@ -99,9 +99,11 @@ fn create_watch(
watcher watcher
.watch(&vp, RecursiveMode::NonRecursive) .watch(&vp, RecursiveMode::NonRecursive)
.map_err(Error::FileWatch)?; .map_err(Error::FileWatch)?;
if vp != fp {
watcher watcher
.watch(&fp, RecursiveMode::NonRecursive) .watch(&fp, RecursiveMode::NonRecursive)
.map_err(Error::FileWatch)?; .map_err(Error::FileWatch)?;
}
let (loader, rx) = Loader::create(vert_path, frag_path); let (loader, rx) = Loader::create(vert_path, frag_path);

Loading…
Cancel
Save