make sure to never mark main_tranmap as purgeable

Fixes #301, thanks ribbiks
This commit is contained in:
Fabian Greffrath 2021-10-25 11:49:02 +02:00
parent d99bdb6207
commit 2ede2ce185

View File

@ -208,6 +208,8 @@ void R_RenderMaskedSegRange(drawseg_t *ds, int x1, int x2)
// Except for main_tranmap, mark others purgable at this point
if (curline->linedef->tranlump > 0 && general_translucency)
// [FG] make sure to never mark main_tranmap as purgeable
if (tranmap != main_tranmap)
Z_ChangeTag(tranmap, PU_CACHE); // killough 4/11/98
}