If I switch fog to 1 (fog_color),all objects who is have shader becoming completely black or without texture,why this happening, that I doing wrong?

Code

without fog


with fog


---
GeForce 5500 FX 256 mb
Win XP SP2


A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram