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

Function FreeTextureBumpmaps

Descent3/gametexture.cpp:729–736  ·  view source on GitHub ↗

Frees all the bumpmaps associated with a texture

Source from the content-addressed store, hash-verified

727
728// Frees all the bumpmaps associated with a texture
729void FreeTextureBumpmaps(int tex_handle) {
730 ASSERT(GameTextures[tex_handle].used > 0);
731
732 if (GameTextures[tex_handle].bumpmap != -1) {
733 bump_FreeBumpmap(GameTextures[tex_handle].bumpmap);
734 GameTextures[tex_handle].bumpmap = -1;
735 }
736}
737
738// Builds the bumpmaps for the past in texture
739void BuildTextureBumpmaps(int texhandle) {

Callers 2

FlushDataCacheFunction · 0.85
FreeTextureFunction · 0.85

Calls 1

bump_FreeBumpmapFunction · 0.85

Tested by

no test coverage detected