As user of Freeglut, I would suggest moving of those checks into debug blocks. However, maybe in some locations these checks should left untouched, like e.g. ...createWindow() or some other functions that are typically the first glut functions called after init.
What do people think of moving the check for initialization into
a "#ifdef DEBUG" block where a call to an uninitialized "freeglut" will
not cause a crash?
John F. Fay
Jacobs Technology TEAS Group
Freeglut-developer mailing list