can you tell me which graphics card you use and what opengl drivers do you have?
If you have a GeForce card with mesa drivers it is quite possible that you did not correctly installed nvidia drivers and there is a mixture of conficting files between mesa and nvidia opengl libraries.
I use a Nvidia TNT 2 card and I installed the nvidia drivers for hardware acceleration.
Also I use mesa drivers…
Maybe I did not installed the nvidia drivers correctly?
I can only execute my progs under KDE (and I have hardware acceleration there), not with any other window manager…