Fixed ati related bug with vertex shaders.

Not intel compliant currently and requires atleast opengl 3.3 capable gpu.