Forgot why this is necessary
This commit is contained in:
parent
647bc08b3f
commit
f96c9e9095
1 changed files with 2 additions and 1 deletions
|
|
@ -574,6 +574,7 @@ UINT8 *R_GetFlatForTexture(size_t texnum)
|
|||
texpatch_t *patch = &texture->patches[0];
|
||||
UINT16 wadnum = patch->wad;
|
||||
lumpnum_t lumpnum = patch->lump;
|
||||
boolean doremap = W_NeedPaletteRemapPwad(wadnum, lumpnum, false);
|
||||
UINT8 *pdata = W_CacheLumpNumPwad(wadnum, lumpnum, PU_CACHE);
|
||||
size_t lumplength = W_LumpLengthPwad(wadnum, lumpnum);
|
||||
|
||||
|
|
@ -587,7 +588,7 @@ UINT8 *R_GetFlatForTexture(size_t texnum)
|
|||
memcpy(texture->flat, pdata, lumplength);
|
||||
}
|
||||
|
||||
if (W_NeedPaletteRemapPwad(wadnum, lumpnum, true))
|
||||
if (doremap)
|
||||
R_DoPaletteRemapFlat(texture->flat, lumplength);
|
||||
|
||||
Z_SetUser(texture->flat, &texture->flat);
|
||||
|
|
|
|||
Loading…
Reference in a new issue