Frees a texture that is being used and Decrements number of textures in use
| 822 | // Frees a texture that is being used and |
| 823 | // Decrements number of textures in use |
| 824 | void FreeTexture(int n) { |
| 825 | ASSERT(GameTextures[n].used); |
| 826 | |
| 827 | FreeTextureBumpmaps(n); |
| 828 | |
| 829 | GameTextures[n].used = 0; |
| 830 | GameTextures[n].name[0] = 0; |
| 831 | Num_textures--; |
| 832 | |
| 833 | FreeProceduralForTexture(n); |
| 834 | } |
| 835 | |
| 836 | // Given current index, gets index of next texture in use |
| 837 | int GetNextTexture(int n) { |
no test coverage detected