cocos2d/cocos2d-x — pull request #5400 by mdehoog (2014-02-20 05:51:25+00:00)
Title: Fixed Texture2D::initWithData setting contentSize

Texture2D's initWithData() function returns a value before setting the _contentSize/_maxS/_maxT variables.