glPolygonMode Being Ignored?

I have a GL code that runs fine on most workstations, but is somehow corrupted on others.
An image is attached that shows the problem. Once in a while I run into a workstation that
renders all polys in wireframe. It’s as if the glPolygonmode command is being ignored or
wasn’t implemented correctly. I explicitly call glPolygonmode with the GL_FILL flag just before
rendering these objects. The polys are rendered correctly on all machines if the background
image is turned off. But some computers switch to wireframe mode when the image is turned
on. Could this be a driver problem?

[ATTACH=CONFIG]2055[/ATTACH]

Have you checked for errors? Also, in OpenGL 3+ core profile, the first argument must be GL_FRONT_AND_BACK.

[QUOTE=GClements;1279040]Have you checked for errors? Also, in OpenGL 3+ core profile, the first argument must be GL_FRONT_AND_BACK.[/QUOTE] I know about the syntax to glPolygonMode. My last call to it before rendering these polys is:

glPolygonMode (GL_FRONT_AND_BACK, GL_FILL);  

Checking for errors is good idea. I’ll look into it.