aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2021-07-29 17:57:22 +0200
committerAndre Weissflog <floooh@gmail.com>2021-07-29 17:57:22 +0200
commit67a90a95dc37c9d1b637e8f7e9ec5beb4ffda5c6 (patch)
treeebbd36a153f63b13d083fd3d19cc64395c753cc1
parentaf244ffaccbe793045c804c072b2f5fe4e085053 (diff)
parent77924ffcd4c7d7fcf58d5cebb6bc2fe828fcc6e7 (diff)
Merge branch 'spritebatch' of https://github.com/nyalloc/sokol into nyalloc-spritebatchnyalloc-spritebatch
-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) {