Test: remove Z_Unlock and proper free some stuff

This commit is contained in:
Alug committed 2024-09-01 20:41:42 +02:00
1 parent f8bec7296c
commit 0523d98a1c
3 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -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 :(
+1 -1
View File
@@ -1748,7 +1748,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)
-1
View File
@@ -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