From b37b5398a6afa940acd1138bde922a70838f33af Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Fri, 4 Jul 2025 10:37:01 -0700 Subject: Add the new low-level renderer, shared between the imm and scene graph renderer. LLR integration with the scene graph renderer not yet done. --- src/core/core.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core') diff --git a/src/core/core.c b/src/core/core.c index 90038c6..e1671ea 100644 --- a/src/core/core.c +++ b/src/core/core.c @@ -420,6 +420,10 @@ void gfx_destroy_shader_program(GfxCore* gfxcore, ShaderProgram** prog) { // Remove the shader program from the cache. ProgramCache* cache = &gfxcore->program_cache; ShaderProgramCacheEntry* entry = find_program_cache_entry(cache, *prog); + // TODO: The following assertion is too restrictive. Clients can end up + // re-using the same shader by virtue of the cache. The assertion assumes + // that no two "different" clients use the same set of shaders. This can + // be relaxed by reference-counting the shaders in the cache. assert(entry); // Must be there, shaders can't go untracked. mempool_free(cache, &entry); -- cgit v1.2.3