Bug fix. Shader was incorrect.
Implemented opengl fixed pipe functions.

Is used by OpenGL ES 2 but is not working yet. OpenGl 1.1 usage
unchanged.