OpenGLScreenSnapshot does not work on Mac OS X 10.7 - Lion

I am writing a program based on the ScreenSnapshot example from apple: http://developer.apple.com/library/mac/#samplecode/OpenGLScreenSnapshot/Introduction/Intro.html and after upgrading from Snow Leopard to Lion my program stopped working. When I checked the example, I realized that it does not work either. For some reason, the glReadPixels function raises the GL_INVALID_FRAMEBUFFER_OPERATION_EXT (0x0506) error.

I reinstalled the developer tools, but no luck. Has anyone made any progress on this? Any pointers would be greatly appreciated.

+4
source share
1 answer

An updated version was published a few days ago, see this new code sample called ScreenSnapshot . There is now highlighted the selection CGDisplayCreateImage . There's even an accompanying technical Q&A .

So, a more general answer: Repeat Apple documents regularly. (Sorry for the extraneous accents over é or fonctions ... somehow Lion spell checker wants to be in French mode .. grr ...)

0
source

All Articles