cocos2d/cocos2d-x — pull request #3065 by dumganhar (2013-07-03 08:19:35+00:00)
Title: closed #2359: Sprite will become white block when using CCControlSwitch.

setShaderProgram should not be in Sprite::setTexture since setTexture is not related to shader.
Developer has responsibility to reset shaderprogram when texture is changed from NULL to non-NULL or from non-NULL to NULL.