Merge Surface into hwrenderer::Surface

This commit is contained in:
RaveYard 2023-08-31 22:53:55 +02:00 committed by Magnus Norddahl
commit 23deb11399
7 changed files with 73 additions and 98 deletions

View file

@ -240,7 +240,7 @@ static int CreateIndexedSectorVerticesLM(FRenderState& renderstate, sector_t* se
{
subsector_t* sub = sec->subsectors[i];
LightmapSurface* lightmap = &sub->lightmap[h][lightmapIndex];
if (lightmap->Type != ST_NULL)
if (lightmap->Type != hwrenderer::ST_UNKNOWN)
{
float* luvs = lightmap->TexCoords;
int lindex = lightmap->LightmapNum;