A quick & easy test is to run glxgears
It renders a few spinning gears and gives you some frame rate statistics.
If the gears appear, then you've got open gl
But this only tells you if opengl is running on your distro, it doesn't tell you if a particular game is going to run opengl properly