well first your reading the front buffer, now i don’t know how that will effect things but i prefer the back buffer as it’s guaranteed to contain the data you need if you call it just before you swap the buffers.
well you could, but glReadPixels will do that automatically, in fact it will basically call a glFinish, glFlush is all but deprecated as its basically only a hint to start rendering which i have found no good use for (as that happens automatically).
i got problem when compile opengl project in codeblock.
every time i compile,the glut.h will come out and say there is 3 error in my code.
but i have try the code in other computer and can be compiled.Is it the problem of my laptop or the glut.h library i download has problem.please reply me.thanks.