cocos2d/cocos2d-iphone — pull request #876 by thayerandrews (2014-07-09 20:37:03+00:00)
Title: CCEffectRefraction - Fix various issues uncovered by Viktor during testing

- Use premultiplied alpha blending to combine the sprite's main texture with the refracted environment.
- If the refracted texture coordinates would be out of bounds of the environment, do not combine the resulting environment pixel with the sprite's main texture.
- Fix a crash that occurred if an effect was applied to a sprite with a nil main texture.
- If a sprite has no main texture, set the texture rect from the normal map instead.