View Full Version : No redraw with GLUT on xorg-ati-6.9.0

12-22-2008, 07:08 AM
Hi Forum,

After a while I'm turning back again on my OpenGL lectures and ... it stopped working. :(

I'm still somewhere on the opening "red book" chapters. I initialize a window with glut, register the callback, etc.

I even know the display function is passed once, and I remember it worked before. This was before I switched to xorg ati 6.9.0 drivers.

Now, I don't get any visual. The window is not cleared nor is there any content displayed at all using the glut routines.

I took a glance on the glxgears sample (which works!) and noticed
it doesn't use glut but issues a glxSwapBuffers.

What's wrong?

The sample can be downloaded here: http://www.dyle.org/opengl/opengl_example-0.6.tar.gz
It's the bin/main.cpp file.

Maybe it's a driver issue (or I simply don't see it).

12-22-2008, 08:51 AM
Simply replace glFlush(); by glutSwapBuffers(); in the display() func.

Previous version may only work with single-buffered window, and you request a double-buffered one.

12-22-2008, 01:53 PM
Hehehe ... Thanks! :)