glut

My problem is related with glut. You see, I’ve tried to build two windows by using glut. Success. But the problem is, why does the model (object e.g box) flickers, and stopped flickering when I click my mouse at the window (where the model is).