cocos2d/cocos2d-x — pull request #2583 by silverscania (2013-05-19 12:21:43+00:00)
Title: Bug in previous modifications made to GL_UNPACK_ALIGNMENT 

I previously fixed a bug where the row byte alignment was set incorrectly for other pixel formats.

This introduced a new bug as discussed here:https://github.com/cocos2d/cocos2d-x/commit/e66e7cfcca2676d8e1b3fa44b27e096729c68f5a#commitcomment-3243089

This was because setting the row byte alignment to anything other than 1 for non power of two textures, even if the alignment was 2, 4 or 8 was incorrect.