I have a render method like this:
(cnt is a global variable)
if(cnt > 1000)
When cnt>1000, the wire cube disapeared, and the solid cube isn’t drawn.
Is it not allowed to have brance statement in the callback function for glutDisplayFunc()?