Adding texEnv emulation to Immediate mode.
PR fixes.
Merge branch 'texenv' of github.com:jdashg/emscripten into texenv

Conflicts:
	src/library_gl.js