Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Update docs on invalid shader hot reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
darthdeus committed Nov 5, 2023
1 parent 37feaac commit b3ce038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comfy/examples/fragment-shader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ fn update(state: &mut GameState, c: &mut EngineContext) {
// shipped with shaders embedded in the binary, as well as a path for hot reloading,
// which will be watched by Comfy and hot-reloaded on change.
//
// Note that currently hot reloading an invalid shader will crash. This will get fixed
// relatively soon.
// Note that currently hot reloading an invalid shader will log the error in the
// terminal, but will automatically fall back to the previous shader that compiled.
create_reloadable_shader(
&mut c.renderer.shaders.borrow_mut(),
"my-shader",
Expand Down

0 comments on commit b3ce038

Please sign in to comment.