Merge TextureXXX::SetData modification from master branch.