summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2006-10-16 20:57:09 +0000
committerIan Romanick <idr@us.ibm.com>2006-10-16 20:57:09 +0000
commit8c5ae809163c49cf3785edaee9af0f5b6cfe5f4b (patch)
tree3dfa0f1c592e2a1a28fc321df8c72f28adbbd2e7 /src/mesa
parent28081ae6c08378372651d4acdec48e5c88fc8cce (diff)
downloadexternal_mesa3d-8c5ae809163c49cf3785edaee9af0f5b6cfe5f4b.zip
external_mesa3d-8c5ae809163c49cf3785edaee9af0f5b6cfe5f4b.tar.gz
external_mesa3d-8c5ae809163c49cf3785edaee9af0f5b6cfe5f4b.tar.bz2
Fix build when DEBUG is defined but DEBUG_MATH is not.
A couple places attempted to call _math_test_all_*_functions when DEBUG was defined. These routines only exist when DEBUG_MATH is defined.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/sparc/sparc.c2
-rw-r--r--src/mesa/x86-64/x86-64.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/sparc/sparc.c b/src/mesa/sparc/sparc.c
index b7fe360..1b77b0b 100644
--- a/src/mesa/sparc/sparc.c
+++ b/src/mesa/sparc/sparc.c
@@ -133,7 +133,7 @@ void _mesa_init_all_sparc_transform_asm(void)
_mesa_sparc_rescale_normals;
#endif
-#ifdef DEBUG
+#ifdef DEBUG_MATH
_math_test_all_transform_functions("sparc");
_math_test_all_cliptest_functions("sparc");
_math_test_all_normal_transform_functions("sparc");
diff --git a/src/mesa/x86-64/x86-64.c b/src/mesa/x86-64/x86-64.c
index 21d978b..afb864c 100644
--- a/src/mesa/x86-64/x86-64.c
+++ b/src/mesa/x86-64/x86-64.c
@@ -1,4 +1,4 @@
-/* $Id: x86-64.c,v 1.2 2005/09/19 20:12:33 brianp Exp $ */
+/* $Id: x86-64.c,v 1.3 2006/10/16 20:57:09 idr Exp $ */
/*
* Mesa 3-D graphics library
@@ -105,7 +105,7 @@ void _mesa_init_all_x86_64_transform_asm(void)
_mesa_x86_64_transform_points4_2d;
*/
-#ifdef DEBUG
+#ifdef DEBUG_MATH
_math_test_all_transform_functions("x86_64");
_math_test_all_cliptest_functions("x86_64");
_math_test_all_normal_transform_functions("x86_64");