cocos2d/cocos2d-x — pull request #4011 by ktaobo (2013-10-26 01:54:54+00:00)
Title: Update texture information

`Texture2D::initWithData` calls `initWithMipMaps` and returns immediately.
So `contentSize` is not considered.

This change checks the result of `initWithMipMaps`,
and updates member variables according to `contentSize`.

`GridBase::initWithSize` passes next-power-of-two pixel size
and original contentSize,
so `GridBase` is affected by this change (I'm sorry but I have not confirmed.)