From b3ce03889f26562dd0395cdd3ff64405310be434 Mon Sep 17 00:00:00 2001 From: Jakub Arnold Date: Sun, 5 Nov 2023 23:18:56 +0100 Subject: [PATCH] Update docs on invalid shader hot reloading --- comfy/examples/fragment-shader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfy/examples/fragment-shader.rs b/comfy/examples/fragment-shader.rs index 4c62747..86ad816 100644 --- a/comfy/examples/fragment-shader.rs +++ b/comfy/examples/fragment-shader.rs @@ -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",