Merge branch 'noZ_unlock' into Saturn-Next

This commit is contained in:
Alug committed 2024-09-06 22:37:39 +02:00
commit 047d38daab
4 files changed
+3 -4

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
@@ -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)
+1 -1
View File
@@ -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)
-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