Skip to content

Commit

Permalink
Fix code to run on Ogre 2.2
Browse files Browse the repository at this point in the history
Signed-off-by: Matias N. Goldberg <[email protected]>
  • Loading branch information
darksylinc committed Feb 19, 2022
1 parent e7db1da commit b4d8cc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ogre2/src/Ogre2RenderTarget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,14 @@ void Ogre2RenderTarget::Copy(Image &_image) const
}

Ogre::TextureBox dstBox(
texture->getInternalWidth(), texture->getInternalHeight(),
texture->getWidth(), texture->getHeight(),
texture->getDepth(), texture->getNumSlices(),
static_cast<uint32_t>(
Ogre::PixelFormatGpuUtils::getBytesPerPixel(dstOgrePf)),
static_cast<uint32_t>(Ogre::PixelFormatGpuUtils::getSizeBytes(
texture->getInternalWidth(), 1u, 1u, 1u, dstOgrePf, 1u)),
texture->getWidth(), 1u, 1u, 1u, dstOgrePf, 1u)),
static_cast<uint32_t>(Ogre::PixelFormatGpuUtils::getSizeBytes(
texture->getInternalWidth(), texture->getInternalHeight(), 1u, 1u,
texture->getWidth(), texture->getHeight(), 1u, 1u,
dstOgrePf, 1u)));
dstBox.data = _image.Data();

Expand Down

0 comments on commit b4d8cc9

Please sign in to comment.