Glut and Windows 98


I just started to learn to develop OpenGL-programs under Windows98. The demo applications without Glut (lessons under NeHe) work fine. Now I found lessions with Glut. I can compile and link the demo code without problems, but I only see a black screen after starting the program.

I downloaded the newest Glut (3.7 Beta binary) and use the Watcom 10.6 Compiler.

The source code can be found under:

Any idea?

Thanks a lot for your time

You need to call glFlush() at the end of your Display() function. That should solve your problem.

If your program is using a doublebuffer, a call to glFlush() is rendurant. It’s done automatically when calling SwapBuffers() under Win32, but dunno about X-environments.