REmoving warnings for unused var

This commit is contained in:
Sam Gateau 2017-07-07 12:19:22 +02:00
parent 4c1bf6af47
commit a8086764da
2 changed files with 5 additions and 3 deletions

View file

@ -740,8 +740,8 @@ void DefaultLightingSetup::run(const RenderContextPointer& renderContext) {
_defaultLight = lp; _defaultLight = lp;
// Add the global light to the light stage (for later shadow rendering) // Add the global light to the light stage (for later shadow rendering)
auto defaultLightID = lightStage->addLight(lp); _defaultLightID = lightStage->addLight(lp);
lightStage->addShadow(defaultLightID); lightStage->addShadow(_defaultLightID);
} }
auto backgroundStage = renderContext->_scene->getStage<BackgroundStage>(); auto backgroundStage = renderContext->_scene->getStage<BackgroundStage>();
@ -754,7 +754,7 @@ void DefaultLightingSetup::run(const RenderContextPointer& renderContext) {
_defaultBackground = background; _defaultBackground = background;
// Add the global light to the light stage (for later shadow rendering) // Add the global light to the light stage (for later shadow rendering)
auto defaultBackgroundID = backgroundStage->addBackground(_defaultBackground); _defaultBackgroundID = backgroundStage->addBackground(_defaultBackground);
} }
} }
} }

View file

@ -180,7 +180,9 @@ public:
protected: protected:
model::LightPointer _defaultLight; model::LightPointer _defaultLight;
LightStage::Index _defaultLightID{ LightStage::INVALID_INDEX };
model::SunSkyStagePointer _defaultBackground; model::SunSkyStagePointer _defaultBackground;
BackgroundStage::Index _defaultBackgroundID{ BackgroundStage::INVALID_INDEX };
model::SkyboxPointer _defaultSkybox { new ProceduralSkybox() }; model::SkyboxPointer _defaultSkybox { new ProceduralSkybox() };
gpu::TexturePointer _defaultSkyboxTexture; gpu::TexturePointer _defaultSkyboxTexture;
gpu::TexturePointer _defaultSkyboxAmbientTexture; gpu::TexturePointer _defaultSkyboxAmbientTexture;