I need to take a screen capture of my Sparrow 1.4 game. Looking in Sparrow Wiki, I found an extension "SPDisplayObject+Image.h" from Shilo and incorporated it into the game. It seems to work on the Simulator, but testing on a device I got EXC_BAD_ACCESS (code = 1) on line:
glReadPixels(0, (stage.height*contentScaleFactor)-height, width, height, GL_RGBA, GL_UNSIGNED_BYTE, &buffer);
Does anyone know how to fix this problem?
Or is there another way to take a screen capture in Sparrow 1.4 that works?
Any help will be much appreciated. Thanks!