Remove these 2 calls to HWR_UnlockCachedPatch

From what I can tell, this is not in SRB2 master or next. I'm uncertain about this, but Jeck has had zero crashes with this.
This commit is contained in:
Sally Coolatta 2020-10-28 15:16:05 -04:00
parent de936f4c7f
commit 646fd15b02
2 changed files with 1 additions and 3 deletions

View file

@ -419,7 +419,6 @@ static void md2_loadTexture(md2_t *model)
}
HWD.pfnSetTexture(grpatch->mipmap);
HWR_UnlockCachedPatch(grpatch);
}
// -----------------+
@ -470,7 +469,6 @@ static void md2_loadBlendTexture(md2_t *model)
}
HWD.pfnSetTexture(grpatch->mipmap); // We do need to do this so that it can be cleared and knows to recreate it when necessary
HWR_UnlockCachedPatch(grpatch);
Z_Free(filename);
}

View file

@ -62,7 +62,7 @@ enum
PU_CACHE_UNLOCKED = 101, // Note: unused
PU_HWRCACHE_UNLOCKED = 102, // 'unlocked' PU_HWRCACHE memory:
// 'second-level' cache for graphics
// stored in hardware format and downloaded as needed
// stored in hardware format and downloaded as needed
PU_HWRPATCHINFO_UNLOCKED = 103, // 'unlocked' PU_HWRPATCHINFO memory
PU_HWRMODELTEXTURE_UNLOCKED = 104, // 'unlocked' PU_HWRMODELTEXTURE memory
};