mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 13:39:40 +00:00
Fix a couple of warnings
This commit is contained in:
parent
f9cf1ac94b
commit
66a114d6ec
2 changed files with 3 additions and 1 deletions
|
@ -86,7 +86,7 @@ namespace SceneUtil
|
||||||
|
|
||||||
Shader::ShaderManager::DefineMap definesWithShadows;
|
Shader::ShaderManager::DefineMap definesWithShadows;
|
||||||
definesWithShadows.insert(std::make_pair(std::string("shadows_enabled"), std::string("1")));
|
definesWithShadows.insert(std::make_pair(std::string("shadows_enabled"), std::string("1")));
|
||||||
for (int i = 0; i < mShadowSettings->getNumShadowMapsPerLight(); ++i)
|
for (unsigned int i = 0; i < mShadowSettings->getNumShadowMapsPerLight(); ++i)
|
||||||
definesWithShadows["shadow_texture_unit_list"] += std::to_string(i) + ",";
|
definesWithShadows["shadow_texture_unit_list"] += std::to_string(i) + ",";
|
||||||
// remove extra comma
|
// remove extra comma
|
||||||
definesWithShadows["shadow_texture_unit_list"] = definesWithShadows["shadow_texture_unit_list"].substr(0, definesWithShadows["shadow_texture_unit_list"].length() - 1);
|
definesWithShadows["shadow_texture_unit_list"] = definesWithShadows["shadow_texture_unit_list"].substr(0, definesWithShadows["shadow_texture_unit_list"].length() - 1);
|
||||||
|
|
|
@ -17,6 +17,8 @@ namespace SceneUtil
|
||||||
|
|
||||||
ShadowManager(osg::ref_ptr<osg::Group> sceneRoot, osg::ref_ptr<osg::Group> rootNode, unsigned int outdoorShadowCastingMask, unsigned int indoorShadowCastingMask);
|
ShadowManager(osg::ref_ptr<osg::Group> sceneRoot, osg::ref_ptr<osg::Group> rootNode, unsigned int outdoorShadowCastingMask, unsigned int indoorShadowCastingMask);
|
||||||
|
|
||||||
|
virtual ~ShadowManager() = default;
|
||||||
|
|
||||||
virtual void setupShadowSettings();
|
virtual void setupShadowSettings();
|
||||||
|
|
||||||
virtual Shader::ShaderManager::DefineMap getShadowDefines();
|
virtual Shader::ShaderManager::DefineMap getShadowDefines();
|
||||||
|
|
Loading…
Reference in a new issue