summaryrefslogtreecommitdiff
path: root/src/mesa/math/m_eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/math/m_eval.c')
-rw-r--r--src/mesa/math/m_eval.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/math/m_eval.c b/src/mesa/math/m_eval.c
index d324673..4a461de 100644
--- a/src/mesa/math/m_eval.c
+++ b/src/mesa/math/m_eval.c
@@ -41,6 +41,15 @@
#include "main/config.h"
#include "m_eval.h"
+/*
+ * XXX: MSVC takes forever to compile this module for x86 unless we disable
+ * optimizations.
+ *
+ */
+#if defined(_MSC_VER) && defined(_M_IX86)
+# pragma optimize( "", off )
+#endif
+
static GLfloat inv_tab[MAX_EVAL_ORDER];