PDA

View Full Version : glPolygonMode Being Ignored?



Carmine
08-21-2015, 02:53 PM
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?

2055

GClements
08-21-2015, 03:09 PM
Have you checked for errors? Also, in OpenGL 3+ core profile, the first argument must be GL_FRONT_AND_BACK.

Carmine
08-21-2015, 04:50 PM
Have you checked for errors? Also, in OpenGL 3+ core profile, the first argument must be GL_FRONT_AND_BACK. 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.