cocos2d/cocos2d-iphone — pull request #238 by Panajev (2012-09-28 09:49:57+00:00)
Title: (x): fix for CCRenderTexture issue.

Begin and end block not restoring the view correctly.

It includes a modification to the SpriteTest demo to show the issue at hand and a way to trigger the older hackish fix I tried (simply adding an extra matrix push and pop around the render texture [rt begin][rt end] block which basically negated the modelview and projection matrices calculations at the end of the -end method of CCRenderTexture). If you add back the old -end method of CCRenderTexture, then the test will show the effect of the old "fix" (turning it off and then back on shows what happens to the sprites already added to the scene).

Right now, the old "fix" does not do a thing... same result if you leave it on or turn it off.