my program works even on drivers with that bug
I see your point, but if you want to make sure your program works fine with all drivers, it can get complex.
I have never seen this TexEnv bug probably because I tend to use MODULATE or COMBINE and seems to work perfectly and also I’m on Windows.
i’m running this on ubuntu linux with an nvidia 6600gt (76.67 driver).
I’m sure you are seeing a bug.
Tried the new drivers? 87.62
I do however unbind the texture (bind 0), could this maybe reset the texture environment?
You can try
int myTexEnv;
glGetTexEnviv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE , &myTexEnv);
but even this might return GL_REPLACE, while on the GPU, it may be GL_MODULATE.