# HG changeset patch # User Mike Becker # Date 1755726323 -7200 # Node ID ddcf637587ce1bf89bb0e0ec06d5b62a6baac920 # Parent 3031d1bb595705ea32dc233b6b6af184df53bce9 move debug output regarding clearing the shader registry to the respective function diff -r 3031d1bb5957 -r ddcf637587ce demo/snake/snake.c --- a/demo/snake/snake.c Tue Aug 19 18:51:46 2025 +0200 +++ b/demo/snake/snake.c Wed Aug 20 23:45:23 2025 +0200 @@ -578,7 +578,6 @@ // debug-key for clearing the shader registry if (asc_key_pressed(ASC_KEY(S))) { asc_shader_clear_registry(); - asc_dprintf("Shader cache cleared."); } // show/hide the FPS counter diff -r 3031d1bb5957 -r ddcf637587ce src/shader.c --- a/src/shader.c Tue Aug 19 18:51:46 2025 +0200 +++ b/src/shader.c Wed Aug 20 23:45:23 2025 +0200 @@ -263,6 +263,7 @@ cxListClear(asc_active_glctx->shaders); // also clear the active program to avoid accidental matches with newly created shaders asc_shader_use(NULL, NULL); + asc_dprintf("Shader cache cleared."); } asc_uniform_loc asc_shader_get_uniform_loc(const AscShaderProgram *shader, const char *name) {