Simplify span brightmap load

This commit is contained in:
Sally Coolatta 2021-12-17 03:42:59 -05:00
parent b0317e7120
commit 5183d3161c

View file

@ -987,18 +987,9 @@ void R_DrawSinglePlane(visplane_t *pl)
INT32 bmNum = R_GetTextureBrightmap(texNum); INT32 bmNum = R_GetTextureBrightmap(texNum);
if (bmNum != 0) if (bmNum != 0)
{
texture_t *brightmap = textures[bmNum];
if (brightmap->flat == NULL)
{ {
ds_brightmap = R_GenerateTextureAsFlat(bmNum); ds_brightmap = R_GenerateTextureAsFlat(bmNum);
} }
else
{
ds_brightmap = (UINT8 *)brightmap->flat;
}
}
} }
if (!pl->slope // Don't mess with angle on slopes! We'll handle this ourselves later if (!pl->slope // Don't mess with angle on slopes! We'll handle this ourselves later