when I use :
GLFloat* buffer=NULL;
glReadPixels(0, 0, width, height, GL_RGB, GL_FLOAT, buffer );
to get openGL frame, the variable buffer remains NULL. what's wrong with it?
I am using MFC windows to display OpenGL view. the OpenGL viewport is set larger than the window size.
please help me