aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStuart Adams <stuartdadams@gmail.com>2021-07-28 23:05:58 +0100
committerGitHub <noreply@github.com>2021-07-28 23:05:58 +0100
commit77924ffcd4c7d7fcf58d5cebb6bc2fe828fcc6e7 (patch)
tree71341623938c6507db7b5460666b300139798a3f /util
parentcb4ecdfbf13f2211fe95cba4cbef3f433120d9e1 (diff)
Release pipeline pool on shutdown
Diffstat (limited to 'util')
-rw-r--r--util/sokol_spritebatch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/sokol_spritebatch.h b/util/sokol_spritebatch.h
index eccd1fb1..6bc5282f 100644
--- a/util/sokol_spritebatch.h
+++ b/util/sokol_spritebatch.h
@@ -1963,8 +1963,9 @@ SOKOL_API_IMPL void sbatch_shutdown(void) {
sg_destroy_buffer(_sbatch.index_buffer);
sbatch_destroy_pipeline(_sbatch.pipeline);
sg_destroy_shader(_sbatch.shader);
- _sbatch_discard_context_pool();
SOKOL_FREE(_sbatch.sprite_pool.data);
+ _sbatch_discard_pipeline_pool();
+ _sbatch_discard_context_pool();
}
SOKOL_SPRITEBATCH_API_DECL sbatch_pipeline sbatch_make_pipeline(const sg_pipeline_desc* desc) {