Commit: 02da4fed6562bd7dbeae96c969d8aaff270d0f6b
Parent: 246c001c14d109bd14b571373435cb6c3bac0797
Author: Randy Palamar
Date: Thu, 14 Nov 2024 11:45:33 -0700
queue a recompute when shaders are reloaded
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/beamformer.c b/beamformer.c
@@ -697,8 +697,10 @@ DEBUG_EXPORT BEAMFORMER_FRAME_STEP_FN(beamformer_frame_step)
draw_ui(ctx, *arena);
- if (IsKeyPressed(KEY_R))
+ if (IsKeyPressed(KEY_R)) {
ctx->flags |= RELOAD_SHADERS;
+ ui_start_compute(ctx);
+ }
if (WindowShouldClose())
ctx->flags |= SHOULD_EXIT;
}