hi there.
i want to add a ‘save as’ feature to my nice GL-scene. but i don’t get glReadPixels() run. i use a double buffered window and it is NOT overlapped. glReadPixels does not fill the pixels array and sometimes it results in an ‘int 3’ …
// PixelStore and PixelTransfer are
// at defaults;
// r containes window size
unsigned char * pixels_rgba = (unsigned char *) malloc (r.right * r.bottom * 4);