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.

Lehtonen, Matti

On 22/10/2007, Fay John F Dr CTR USAF 46 SK <> wrote:

        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
Technical Fellow
Jacobs Technology TEAS Group
Freeglut-developer mailing list

Life is complex. It has real and imaginary parts.