Shader performance improvement and bug fixes

Added performance improvement for non-vertex texture version of fragment
shader.

Also fixes issues on Nvidia GPUs where GLES20.GL_FUNC_ADD is not
properly supported.