hot reload argument

This commit is contained in:
2025-09-12 22:40:00 +02:00
parent ff0a4ebdae
commit b7aa658e50
5 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ void forge_run(Parameters params) {
}
while (!glfwWindowShouldClose(window)) {
if (should_update_file(&fragment_shader)) {
if (params.hot_reload && should_update_file(&fragment_shader)) {
update_file(&fragment_shader);
update_program(program, fragment_shader);
}