use gl_FragData in 1.2 shader
change to glFramebufferTexture2D in order to work in OpenGL 2.1