make compatible with OpenGL 3.0 / GLSL 1.30

now it runs on mesa.
The catalyst driver broke on one of my dev machines so I have
to use the open source driver now
AMD needs to get their act together.