From 23909d109ff3ac60b3109c4f097e60a4bb972063 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 23 May 2018 08:46:26 +0200 Subject: [PATCH] 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 --- src/gl/scene/gl_flats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/scene/gl_flats.cpp b/src/gl/scene/gl_flats.cpp index 1faa449015..4f974598dc 100644 --- a/src/gl/scene/gl_flats.cpp +++ b/src/gl/scene/gl_flats.cpp @@ -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)