reduced openGL dependency to GLSL version 1.2