Possible Duplicate:
Why is glReadPixels() failing in this code in iOS 6.0?
The following line works great on the iOS 6 simulator but doesn't work on iOS 6 device. What could be wrong ? How to fix this ? Thanks a lot.
glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, buffer);