| 44 | atexit(bump_ShutdownBumpmaps); |
| 45 | } |
| 46 | void bump_ShutdownBumpmaps(void) { |
| 47 | int i; |
| 48 | |
| 49 | mprintf(0, "Freeing all bumpmap memory.\n"); |
| 50 | |
| 51 | for (i = 0; i < MAX_BUMPMAPS; i++) { |
| 52 | while (GameBumpmaps[i].flags & BUMPF_USED) |
| 53 | bump_FreeBumpmap(i); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | // Allocs a bumpmap of w*h size |
| 58 | // Returns bumpmap handle if successful, -1 if otherwise |
nothing calls this directly
no test coverage detected