OpenGL2: Small glsl shader optimizations, fixes, and cleanup.