Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closed #2359: Sprite will become white block when using CCControlSwitch. #3065

Merged
merged 1 commit into from Jul 3, 2013

Conversation

dumganhar
Copy link

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.

…rolSwitch.

setShaderProgram should not be in Sprite::setTexture since setTexture is not related to shader.
dumganhar pushed a commit that referenced this pull request Jul 3, 2013
Sprite will become white block when using CCControlSwitch.
setShaderProgram should not be in Sprite::setTexture since setTexture is not related to shader.
@dumganhar dumganhar merged commit 80710aa into cocos2d:develop Jul 3, 2013
@dumganhar dumganhar deleted the iss2359-ccontrolswitch branch July 3, 2013 08:22
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 28, 2014
Sprite will become white block when using CCControlSwitch.
setShaderProgram should not be in Sprite::setTexture since setTexture is not related to shader.
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 29, 2014
Sprite will become white block when using CCControlSwitch.
setShaderProgram should not be in Sprite::setTexture since setTexture is not related to shader.
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 30, 2014
Sprite will become white block when using CCControlSwitch.
setShaderProgram should not be in Sprite::setTexture since setTexture is not related to shader.
angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 30, 2014
Sprite will become white block when using CCControlSwitch.
setShaderProgram should not be in Sprite::setTexture since setTexture is not related to shader.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant