mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 13:31:07 +00:00
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:
parent
044c8a2034
commit
23909d109f
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ void FDrawInfo::SetupSubsectorLights(GLFlat *flat, int pass, subsector_t * sub,
|
||||||
(*dli)++;
|
(*dli)++;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (flat->SetupSectorLights(pass, flat->sector, lightdata))
|
if (flat->SetupSubsectorLights(pass, sub, lightdata))
|
||||||
{
|
{
|
||||||
int d = GLRenderer->mLights->UploadLights(lightdata);
|
int d = GLRenderer->mLights->UploadLights(lightdata);
|
||||||
if (pass == GLPASS_LIGHTSONLY)
|
if (pass == GLPASS_LIGHTSONLY)
|
||||||
|
|
Loading…
Reference in a new issue