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.

glVertex3d(0, 0, 0);
glVertex3d(10, 1e39, 0);

Most implementations immediately reduce all values to floats.

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

  • Matt