I try update part of my texture with the following code:
Code: Select all
Ogre::Box box(dstl, dstt, dstr, dstb);
Ogre::PixelBox srcBox = dstPixelBox.getSubVolume(box);
texture->getBuffer()->blitFromMemory(srcBox, box);
Code: Select all
Unsupported texture format
Code: Select all
if(data.getWidth() != data.rowPitch)
{
// TODO
OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS,
"Unsupported texture format",
"GLESTextureBuffer::upload");
}
if(data.getHeight()*data.getWidth() != data.slicePitch)
{
// TODO
OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS,
"Unsupported texture format",
"GLESTextureBuffer::upload");
}
Is this a bug or GLES limitation?
Thanks.
