Skip to content

Commit 46b576e

Browse files
authored
Merge branch 'gz-rendering7' into scpeters/metal_avoid_segfault
2 parents ae5f541 + c8dddd6 commit 46b576e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ogre2/src/Ogre2Material.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -673,11 +673,11 @@ void Ogre2Material::SetEmissiveMap(const std::string &_name,
673673
this->dataPtr->emissiveMapData = _img;
674674
if (_img == nullptr)
675675
{
676-
this->SetTextureMapImpl(this->metalnessMapName, Ogre::PBSM_EMISSIVE);
676+
this->SetTextureMapImpl(this->emissiveMapName, Ogre::PBSM_EMISSIVE);
677677
}
678678
else
679679
{
680-
this->SetTextureMapDataImpl(this->metalnessMapName,
680+
this->SetTextureMapDataImpl(this->emissiveMapName,
681681
_img, Ogre::PBSM_EMISSIVE);
682682
}
683683
}

0 commit comments

Comments
 (0)