checking the glsl version for shader construction
returned to fixed function pipeline with nvidia fog distance extension