Fix for #1013 - Texture2DArray fails to regenerate after a releaseGLObjects/dirtyTextureObject - remove the modified count condition on component images when subloading when there is no texture object

This commit is contained in:
Glenn Waldron 2020-12-24 10:32:44 -05:00 committed by Robert Osfield
parent 9c7cde1db4
commit 5ca6759a1f

View File

@ -400,11 +400,8 @@ void Texture2DArray::apply(State& state) const
osg::Image* image = itr->get();
if (image)
{
if (getModifiedCount(n,contextID) != image->getModifiedCount())
{
getModifiedCount(n,contextID) = image->getModifiedCount();
applyTexImage2DArray_subload(state, image, n, _textureWidth, _textureHeight, image->r(), _internalFormat, _numMipmapLevels);
}
getModifiedCount(n,contextID) = image->getModifiedCount();
applyTexImage2DArray_subload(state, image, n, _textureWidth, _textureHeight, image->r(), _internalFormat, _numMipmapLevels);
n += image->r();
}
}