summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-11-10 05:10:25 +0000
committerBrian Paul <[email protected]>2005-11-10 05:10:25 +0000
commit1984aabe8362ee2b29711d2fa08e56e341eafddd (patch)
tree37f4153a9b3db927c7a80a077eb90d7144cffb25 /src/mesa/main/imports.c
parenta8446f72f45008974e356d103c2961d334a825c3 (diff)
Move code to enable FP exceptions into debug.c (set MESA_DEBUG=fpexceptions).
Get rid of MESA_DEBUG preprocessor symbol, just use DEBUG instead.
Diffstat (limited to 'src/mesa/main/imports.c')
-rw-r--r--src/mesa/main/imports.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index de8456d3b7d..3aca054f79e 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -1265,20 +1265,6 @@ _mesa_init_default_imports(__GLimports *imports, void *driverCtx)
static GLboolean initialized = GL_FALSE;
if (!initialized) {
init_sqrt_table();
-
-#if defined(_FPU_GETCW) && defined(_FPU_SETCW)
- {
- const char *debug = _mesa_getenv("MESA_DEBUG");
- if (debug && _mesa_strcmp(debug, "FP")==0) {
- /* die on FP exceptions */
- fpu_control_t mask;
- _FPU_GETCW(mask);
- mask &= ~(_FPU_MASK_IM | _FPU_MASK_DM | _FPU_MASK_ZM
- | _FPU_MASK_OM | _FPU_MASK_UM);
- _FPU_SETCW(mask);
- }
- }
-#endif
initialized = GL_TRUE;
}