Hot fix for seting shader in CCSprite::setTexture

Those changes fix TestCPP with CCControlSwitch example

More comments at https://github.com/cocos2d/cocos2d-x/commit/a87cba80dbeaa991de2098ef359e533f28883d12#cocos2dx/sprite_nodes/CCSprite.cpp