Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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?

0
Posted

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?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.