glTexEnvf should only be called when using the fixed pipeline opengl renderer.

glTexEnv was crashing iOS 4.x
so now checking if the renderer type is "GL" before making this call.