Frees all the procedural memory for a texture
| 807 | |
| 808 | // Frees all the procedural memory for a texture |
| 809 | void FreeProceduralForTexture(int n) { |
| 810 | if (GameTextures[n].procedural != NULL) { |
| 811 | FreeStaticProceduralsForTexture(n); |
| 812 | mem_free(GameTextures[n].procedural->proc1); |
| 813 | mem_free(GameTextures[n].procedural->proc2); |
| 814 | bm_FreeBitmap(GameTextures[n].procedural->procedural_bitmap); |
| 815 | mem_free(GameTextures[n].procedural->palette); |
| 816 | mem_free(GameTextures[n].procedural); |
| 817 | |
| 818 | GameTextures[n].procedural = NULL; |
| 819 | } |
| 820 | } |
| 821 | |
| 822 | // Frees a texture that is being used and |
| 823 | // Decrements number of textures in use |
no test coverage detected