diff --git a/src/hardware/hw_cache.c b/src/hardware/hw_cache.c index c079f2110..9f02007d4 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -379,7 +379,7 @@ static void HWR_GenerateTexture(INT32 texnum, GLMapTexture_t *grtex, boolean noe blockwidth, blockheight, texture, patch, realpatch); - Z_Unlock(realpatch); + Z_ChangeTag(realpatch, PU_HWRCACHE_UNLOCKED); } //Hurdler: not efficient at all but I don't remember exactly how HWR_DrawPatchInCache works :( diff --git a/src/r_data.c b/src/r_data.c index ad8b420f3..e24b2d402 100644 --- a/src/r_data.c +++ b/src/r_data.c @@ -524,7 +524,7 @@ void R_LoadTextures(void) patch->wad = (UINT16)w; patch->lump = texstart + j; - Z_Unlock(patchlump); + Z_Free(patchlump); k = 1; while (k << 1 <= texture->width) diff --git a/src/w_wad.c b/src/w_wad.c index be287d51e..5e2f4ce10 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -1751,7 +1751,7 @@ void W_UnlockCachedPatch(void *patch) HWR_UnlockCachedPatch((GLPatch_t*)patch); else #endif - Z_Unlock(patch); + Z_ChangeTag(patch, PU_LEVEL); } void *W_CachePatchName(const char *name, INT32 tag) diff --git a/src/z_zone.h b/src/z_zone.h index 6125f2b3f..e4ee811f2 100644 --- a/src/z_zone.h +++ b/src/z_zone.h @@ -144,6 +144,5 @@ size_t Z_TagsUsage(INT32 lowtag, INT32 hightag); // Miscellaneous functions // char *Z_StrDup(const char *in); -#define Z_Unlock(p) (void)p // TODO: remove this now that NDS code has been removed #endif