If you are just about to display your scene onto a window at the end of your rendering code, would you use glFlush or glFinish to ensure that all drawing has been completed? I’m guessing that you would use glFinish because glFlush only guarantees that all commands sent to OpenGL will complete in finite time. Therefore, it might not complete before you swap the frame buffers and present the scene.
If i’m wrong, i’d be grateful if someone could point me in the right direction…
Cheers