When I try to use the OpenGL fog color in my ARB fragment program, it seems to use the fog color it had at the time I created the shader. After that, none of my OpenGL calls would change the colors.
I tought of a driver bug only for the fog color, so I tried I tried sending the color through a glProgramEnvParameter4fvARB call. Same result: after the shader is created, the value seems to be fixed.
Anybody has an idea on what causes my parameters value not to change?
Maybe it really is a driver bug ?
What is your systems specs (gfx card, OS, driver, etc) ?
Have you tried it on other system ? If not, can you share a test app to the community so that we can test it ?
I have the same problem too, but it just suddenly started behaving like this without me changing the drivers. My parameters used to come through fine. Strange driver bug, and it needs fixing.
It’s been a while since they released some new drivers…
This is a known bug in Nvidia’s 44.03 driver. I know it’s fixed in later drivers (which aren’t available to the public yet), and I also believe it doesn’t show up in previous drivers. So if you can roll back to an earlier driver, the problem might go away.
It works fine for me, with the NVIDIA linux driver 43.63
I’m using fog in the fragment program, and I change the fog color during the rendering and I can see that the fragment program does take into account the newly defined fog color.
Thanks for the guru3d link. I tried the latest driver I found there and you’re perfectly rigth, it fixes my problem. And I get slightly better performances as well.