cocos2d/cocos2d-x — pull request #5384 by wefiends (2014-02-18 22:51:26+00:00)
Title: CCImage.cpp: initWithS3TCData() - Allow non-mipmapped textures

Currently, s3tc compressed textures with no mipmaps fail to load due to missing the appropriate PixelFormat, since it is only set when loading mipmaps.

This patch sets the pixel format before mipmap loading (if s3tc hardware support is present).