diff --git a/rviz_default_plugins/src/rviz_default_plugins/displays/camera/camera_display.cpp b/rviz_default_plugins/src/rviz_default_plugins/displays/camera/camera_display.cpp index 4be9d1951..ddf0af677 100644 --- a/rviz_default_plugins/src/rviz_default_plugins/displays/camera/camera_display.cpp +++ b/rviz_default_plugins/src/rviz_default_plugins/displays/camera/camera_display.cpp @@ -257,6 +257,7 @@ Ogre::MaterialPtr CameraDisplay::createMaterial(std::string name) const material->getTechnique(0)->getPass(0)->createTextureUnitState(); tu->setTextureName(texture_->getTexture()->getName()); tu->setTextureFiltering(Ogre::TFO_NONE); + tu->setTextureAddressingMode(Ogre::TextureUnitState::TAM_CLAMP); tu->setAlphaOperation(Ogre::LBX_SOURCE1, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, 0.0); return material; diff --git a/rviz_default_plugins/src/rviz_default_plugins/displays/image/image_display.cpp b/rviz_default_plugins/src/rviz_default_plugins/displays/image/image_display.cpp index c283bd04b..c9cf126f8 100644 --- a/rviz_default_plugins/src/rviz_default_plugins/displays/image/image_display.cpp +++ b/rviz_default_plugins/src/rviz_default_plugins/displays/image/image_display.cpp @@ -226,6 +226,7 @@ void ImageDisplay::setupScreenRectangle() material_->getTechnique(0)->getPass(0)->createTextureUnitState(); tu->setTextureName(texture_->getName()); tu->setTextureFiltering(Ogre::TFO_NONE); + tu->setTextureAddressingMode(Ogre::TextureUnitState::TAM_CLAMP); material_->setCullingMode(Ogre::CULL_NONE); Ogre::AxisAlignedBox aabInf;