Skip to content

Commit

Permalink
Remove shader id from internal blit shader lookup during cf_destroy_s…
Browse files Browse the repository at this point in the history
…hader (#248)
waldnercharles authored Nov 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 09021f4 commit 6e94404
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 6e94404

Please sign in to comment.