I have written an application to capture opengl es screen.
And been using the glReadPixels command.
Seems that that command halts my application while reaching the _memcpy of the pixels to my buffer. (this asm command is being used internally in the glReadPixels command process).
I’ve been using fpc in order to code the application, and been allocation buffer space using the SetLength(MyArray, dataLength);
It seems that anything I try to run the glReadPixels command fails, both in the emulation of ios and on the device itself.
I do not know what the exact problem is and been trying to override the halting of the application by using glReadPixels with a small amount of data, comparing to the allocate array. or increasing the allocated space in the buffer so it would have to fit the array dimensions.
Please let me know what buffer to send to the glReadPixels.