OpenGL2: Some small shader optimizations.