Fogging problem.

A friend of mine and I are working together on a game using OpenGL. It is coming along fairly well, but I seem to have to run into a problem that I don’t know the solution to. When the player pauses I want to fog the screen. This works fine on my computer, but won’t on my friend’s. His screen turns a solid color, the color the fog is supposed to be, but doesn’t fog. I had him download another application which uses fogging, and it works correctly. The way I fog is as follows.
On initialization:
GLfloat fogColor[4] = {0.0f, 0.0f, 0.0f, 1.0f};
glFogfv(GL_FOG_COLOR, fogColor);
glFogf(GL_FOG_DENSITY, 0.35f);
glFogf(GL_FOG_START, 0);
glFogf(GL_FOG_END, 1000);

Then when the player pauses:

Any ideas as to what could be wrong? Thanks in advance.


Can you give some more information, such as what color depth is being used in each instance, and which graphics cards and driver versions are being used?

Though I do see one thing in your code that is unnecessary. If you use an exponential fog model, you don’t need to set the start or end values as those are only used in the linear model.