Possible Duplicate:
Why is glReadPixels() failing in this code in iOS 6.0?
I currently have an App in Appstore that uses the Cocos2D framework. For collision detection I am using glReadPixels. The screen only has white and black pixels and detecting a black pixel means collision. Everything works fine up to iOS 5.1.1 but in iOS6 Beta (all of them) glReadPixels stopped working. Now the RGB values returned by glReadPixels are always 0,0,0.
Does anyone have an idea what went wrong or how to fix that?
Your help is much appreciated!