npot textures and mip mapping

Is it possible to use mip mapping for non power of two textures with cocos2d-x? Maybe there is some build in behind the scenes solution to expand npot texture to next pot size texture like some engines do to make it working?