mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
added a quick Z_FreeTag function as a shortcut to Z_FreeTags(tag, tag) where both tags are the same
This commit is contained in:
parent
836bf5e12f
commit
8f834d6784
3 changed files with 10 additions and 4 deletions
|
@ -581,8 +581,8 @@ void HWR_FreeTextureCache(void)
|
|||
|
||||
// free all hardware-converted graphics cached in the heap
|
||||
// our gool is only the textures since user of the texture is the texture cache
|
||||
Z_FreeTags(PU_HWRCACHE, PU_HWRCACHE);
|
||||
Z_FreeTags(PU_HWRCACHE_UNLOCKED, PU_HWRCACHE_UNLOCKED);
|
||||
Z_FreeTag(PU_HWRCACHE);
|
||||
Z_FreeTag(PU_HWRCACHE_UNLOCKED);
|
||||
|
||||
// Alam: free the Z_Blocks before freeing it's users
|
||||
|
||||
|
@ -629,8 +629,8 @@ void HWR_SetPalette(RGBA_t *palette)
|
|||
// now flush data texture cache so 32 bit texture are recomputed
|
||||
if (patchformat == GR_RGBA || textureformat == GR_RGBA)
|
||||
{
|
||||
Z_FreeTags(PU_HWRCACHE, PU_HWRCACHE);
|
||||
Z_FreeTags(PU_HWRCACHE_UNLOCKED, PU_HWRCACHE_UNLOCKED);
|
||||
Z_FreeTag(PU_HWRCACHE);
|
||||
Z_FreeTag(PU_HWRCACHE_UNLOCKED);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -407,6 +407,11 @@ void Z_FreeTags(INT32 lowtag, INT32 hightag)
|
|||
}
|
||||
}
|
||||
|
||||
void Z_FreeTag(INT32 tagnum)
|
||||
{
|
||||
Z_FreeTags(tagnum, tagnum);
|
||||
}
|
||||
|
||||
//
|
||||
// Z_CheckMemCleanup
|
||||
//
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
#define PU_HWRPATCHINFO_UNLOCKED 103
|
||||
|
||||
void Z_Init(void);
|
||||
void Z_FreeTag(INT32 tagnum);
|
||||
void Z_FreeTags(INT32 lowtag, INT32 hightag);
|
||||
void Z_CheckMemCleanup(void);
|
||||
void Z_CheckHeap(INT32 i);
|
||||
|
|
Loading…
Reference in a new issue