[2.1.5] Fixing black screen on android. Refer to https://github.com/cocos2d/cocos2d-x/pull/3117 .