Wed, 20 Aug 2025 23:45:23 +0200
move debug output regarding clearing the shader registry to the respective function
demo/snake/snake.c | file | annotate | diff | comparison | revisions | |
src/shader.c | file | annotate | diff | comparison | revisions |
--- 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
--- 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) {