double buffer problems in opengl

By: Mat Duafala

Abstract: double buffering won't work

Question: Why won't my OpenGL program work in double buffered mode? It works fine in single buffered mode.

Answer: When you are using double buffered mode, you have to explicitly tell the computer to swap the buffers, otherwise it will never post any of the buffers that it renders. The command to force it to post the double buffered display is SwapBuffers(); This should be put into your main display loop.

Server Response from: ETNASC03