title: snapshot of OpenGL ES view iOs 6.0
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/12528365/why-is-glreadpixels-failing-in-this-code-in-ios-6-0">Why is glReadPixels() failing in this code in iOS 6.0?</a>  </p>
  </blockquote>
  
  
  
  <p>We're trying to take a snapshot of OpenGL ES view and to save the result in a UIImage.</p>
  
  <p>For iOS 5.x our function works well.</p>
  
  <p>For iOS 6 our function works only on the simulator and not on the device. We receive a blank (white) image on the device.</p>
  
  <p>We referred to the technical report at <a href="http://developer.apple.com/library/ios/#qa/qa1704/_index.html" rel="nofollow noreferrer">http://developer.apple.com/library/ios/#qa/qa1704/_index.html</a>
  and our function is almost identical to the function presented by apple in this technical report</p>
  
  <p>Enclosed below is our function (in the Additional Details window).</p>
  
  <p>We would be grateful to receive an assistance and we hope to have a reply as soon as possible since our app is currently online with this critical bug.
  (BTW, we use only opengl es and not cocos2d)</p>
  
  <p>PLEASE HELP.</p>