[ci skip]Fixed Texture2D::initWithData setting contentSize

Texture2D's initWithData() function returns a value before setting the contentSize/maxS/maxT variables.