Using GLUT with Microsoft OpenGL 1.1 and compiling GLUT with Borland compilers causes GLUT applications to generates floating point exceptions. What can be done?
A39: Under certain conditions (e.g. while rendering solid surfaces with lighting enabled) MS libraries cause some illegal operations like floating point overflow or division by zero. The default behaviour of Microsoft compilers is to mask (ignore) floating point exceptions, while Borland compilers do not. A function of Borland run-time library allows to mask exceptions. Modify glut_init.
Related Questions
- Using GLUT with Microsoft OpenGL 1.1 and compiling GLUT with Borland compilers causes GLUT applications to generates floating point exceptions. What can be done?
- Using GLUT with SGI OpenGL for Windows and compiling with Borland compilers results in linking problems. What can be done?
- How do I use the precompiled Win32 GLUT DLLs with Borland compilers?