Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove shader id from internal blit shader lookup during cf_destroy_s…
Browse files Browse the repository at this point in the history
…hader
waldnercharles committed Nov 4, 2024
1 parent 09021f4 commit c99f0d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cute_graphics.cpp
Original file line number Diff line number Diff line change
@@ -1227,6 +1227,7 @@ void cf_destroy_shader(CF_Shader shader_handle)
// if it exists. See `cf_make_draw_shader`.
CF_Shader* blit = (CF_Shader*)draw->draw_shd_to_blit_shd.try_get(shader_handle.id);
if (blit) {
draw->draw_shd_to_blit_shd.remove(shader_handle.id);
cf_destroy_shader(*blit);
}

0 comments on commit c99f0d3

Please sign in to comment.