fixed: Generating light data for single subsectors should not use the light list of the entire sector but only the one for the current subsector

This commit is contained in:
Christoph Oelckers 2018-05-23 08:46:26 +02:00
parent 044c8a2034
commit 23909d109f

View file

@ -62,7 +62,7 @@ void FDrawInfo::SetupSubsectorLights(GLFlat *flat, int pass, subsector_t * sub,
(*dli)++;
return;
}
if (flat->SetupSectorLights(pass, flat->sector, lightdata))
if (flat->SetupSubsectorLights(pass, sub, lightdata))
{
int d = GLRenderer->mLights->UploadLights(lightdata);
if (pass == GLPASS_LIGHTSONLY)