configure lightning when no vehicles

This commit is contained in:
milek7
2018-07-20 18:48:24 +02:00
parent 20787d1ba4
commit cfb066f678
2 changed files with 1 additions and 7 deletions

View File

@@ -3146,12 +3146,6 @@ void opengl_renderer::Update_Lights(light_array &Lights)
return (glm::length2(camera - Left.position) * (1.f - Left.intensity)) < (glm::length2(camera - Right.position) * (1.f - Right.intensity));
});
size_t const count = std::min(m_lights.size(), Lights.data.size());
if (count == 0)
{
return;
}
auto renderlight = m_lights.begin();
size_t light_i = 1;