Skip to content

Commit

Permalink
Merge branch 'ahcorde/update/ogre2.2' of https://github.com/ignitionr…
Browse files Browse the repository at this point in the history
…obotics/ign-rendering into ahcorde/update/ogre2.2
  • Loading branch information
ahcorde committed Mar 25, 2021
2 parents bc12f40 + db609f3 commit fcf51b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ogre2/src/Ogre2RenderEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void Ogre2RenderEngine::Destroy()
this->ogreOverlaySystem = nullptr;

// Clean up any textures that may still be in flight.
Ogre::TextureGpuManager *mgr =
Ogre::TextureGpuManager *mgr =
this->ogreRoot->getRenderSystem()->getTextureGpuManager();

auto entries = mgr->getEntries();
Expand Down
3 changes: 2 additions & 1 deletion ogre2/src/Ogre2ThermalCamera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,8 @@ void Ogre2ThermalCamera::PostRender()
{
unsigned int rawDataRowIdx = i * box.bytesPerRow / bytesPerChannel;
unsigned int rowIdx = i * width * channelCount;
memcpy(&this->dataPtr->thermalImage[rowIdx], &thermalBuffer[rawDataRowIdx],
memcpy(&this->dataPtr->thermalImage[rowIdx],
&thermalBuffer[rawDataRowIdx],
width * channelCount * bytesPerChannel);
}
}
Expand Down

0 comments on commit fcf51b1

Please sign in to comment.