One less constant

This commit is contained in:
Sam Gateau 2017-06-26 16:45:54 +02:00
parent 904f22985c
commit a2fc44703d

View file

@ -62,7 +62,7 @@ void DrawBackgroundStage::run(const render::RenderContextPointer& renderContext,
// Background rendering decision
auto backgroundStage = renderContext->_scene->getStage<BackgroundStage>("BACKGROUND_STAGE");
auto backgroundStage = renderContext->_scene->getStage<BackgroundStage>();
model::SunSkyStagePointer background;
model::SkyboxPointer skybox;
if (backgroundStage->_currentFrame._backgrounds.size()) {