From 755befb89d9e0c2e0b9ba317d3cbe4ee843a60ff Mon Sep 17 00:00:00 2001 From: Sven Balzer <4653051+Kyuusokuna@users.noreply.github.com> Date: Sat, 15 Mar 2025 11:27:02 +0100 Subject: [PATCH] destroy tile atlas structure after it is not needed anymore --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 6225abb..279aa20 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -926,6 +926,7 @@ int main(int argc, char **argv) { } stbi_image_free(data); } + sma_atlas_destroy(tile_atlas); SDL_GPUTexture *tile_atlas_texture = create_shader_texture("tile_atlas", tile_atlas_texture_cpu, tile_atlas_size, tile_atlas_size, 4); free(tile_atlas_texture_cpu);