destroy tile atlas structure after it is not needed anymore
This commit is contained in:
parent
ce90ecdaea
commit
755befb89d
@ -926,6 +926,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
stbi_image_free(data);
|
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);
|
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);
|
free(tile_atlas_texture_cpu);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user