Fix compilation of text shader with OpenGL

Changes to the text shader broke it for OpenGL; this is now fixed
but the text shader shows the same problem (no text shows up most
of the time, except in parts of textdemo) that happens with
OpenGL-ES 2.0, implying that a higher level bug has been introduced
to the text drawing or text shader code.