OpenGL2: Fix TCGEN_ENVIRONMENT stages not rendering correctly.