MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / bump_ShutdownBumpmaps

Function bump_ShutdownBumpmaps

bitmap/bumpmap.cpp:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 atexit(bump_ShutdownBumpmaps);
45}
46void 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

Callers

nothing calls this directly

Calls 1

bump_FreeBumpmapFunction · 0.85

Tested by

no test coverage detected