Why is glReadPixels() failing in this code in iOS 6.0?

CAEAGLLayer *eaglLayer = (CAEAGLLayer *) self.layer;
eaglLayer.drawableProperties = @{
    kEAGLDrawablePropertyRetainedBacking: [NSNumber numberWithBool:YES],
    kEAGLDrawablePropertyColorFormat: kEAGLColorFormatRGBA8
};

set

kEAGLDrawablePropertyRetainedBacking = YES

(I do not know why this tip is going well..///)

Leave a Comment