Program freezes

I wrote an opengl, MFC-based program with MS Visual C++ 6.0. The program freezes if a very large coordinate is used. Please see the following code snippet. I thought double has bigger range. Anybody has any ideas? Thanks.

glBegin(GL_LINES);
glVertex3d(0, 0, 0);
glVertex3d(10, 1e39, 0);
glEnd();

Most implementations immediately reduce all values to floats.

I’m not entirely sure how range overflow exceptions work on x86…

  • Matt