I confirm the bug. I have encountered it while playing around with OpenGL tutorials.
The simple c program is attached. It is compiled with command "gcc kaka.c -lGL -lGLU -lglut".
I am using freeglut3-dev, libgl1-mesa-* libraries. The system is Ubuntu 9.04. The hardware is Intel 945GME videochip.
When the program is started with "Additional visual effects enabled" desktop feature,
it produces "freeglut (./a.out): Unable to create direct context rendering for window 'Hello World'
This may hurt performance." via stderr. The resulting window contains various garbage, loosely related to what was supposed to be drawn (despite sometimes the right picture is seen).
However, when the binary is started with all desktop effects shut down (this needs restarting session to take action),
the stderr output is
"get fences failed: -1
param: 6, val: 0"
and all works fine.
To conclude, glut with openGL don't work with Compiz desktop effects enabled.
For those, who would like to use glut anyhow, the obvious workaround is use no desktop effects while running the application(s).
I confirm the bug. I have encountered it while playing around with OpenGL tutorials.
The simple c program is attached. It is compiled with command "gcc kaka.c -lGL -lGLU -lglut".
I am using freeglut3-dev, libgl1-mesa-* libraries. The system is Ubuntu 9.04. The hardware is Intel 945GME videochip.
When the program is started with "Additional visual effects enabled" desktop feature,
it produces "freeglut (./a.out): Unable to create direct context rendering for window 'Hello World'
This may hurt performance." via stderr. The resulting window contains various garbage, loosely related to what was supposed to be drawn (despite sometimes the right picture is seen).
However, when the binary is started with all desktop effects shut down (this needs restarting session to take action),
the stderr output is
"get fences failed: -1
param: 6, val: 0"
and all works fine.
To conclude, glut with openGL don't work with Compiz desktop effects enabled.
For those, who would like to use glut anyhow, the obvious workaround is use no desktop effects while running the application(s).