The line
glLightModeli( GL_LIGHT_MODEL_TWO_SIDE, 1 );
causes a floating point division by 0 error in my program if I am drawing in wireframe mode. I am drawing a triangle mesh using GL_TRIANGLES. I am also using call lists to draw my scene.
The error occurs when glCallList(GLuint list); is called.
If I take out the lighting model line above the problem no longer occurs. Does anyone know what might be causing this or how to fix it?



