I am working on a 3D rendering program that is showing some odd behavior in one scenario. An object is drawing completely distorted like some verticies have incorrect values. If I change the shade model from flat to smooth the problem goes away. Also if I disable hardware acceleration it goes away.
It is drawn with a display list of many triangles. I dumped all opengl calls and here is the beginning of the display list:
Does anyone have any idea of what could be happening or how I could figure out what is going on? Thanks in advance!