Fix build when DEBUG is defined but DEBUG_MATH is not.
authorIan Romanick <idr@us.ibm.com>
Mon, 16 Oct 2006 20:57:09 +0000 (20:57 +0000)
committerIan Romanick <idr@us.ibm.com>
Mon, 16 Oct 2006 20:57:09 +0000 (20:57 +0000)
A couple places attempted to call _math_test_all_*_functions when
DEBUG was defined.  These routines only exist when DEBUG_MATH is
defined.

src/mesa/sparc/sparc.c
src/mesa/x86-64/x86-64.c

index b7fe360d2c6cc1632e1415ab451c7d44564f6dd5..1b77b0bb7ba90f522c79a32b2e5c4f570bba7c4e 100644 (file)
@@ -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");
index 21d978b06e54de0b52f465f9844e75bdd3178f5e..afb864c73a536d0920b9c01592ce60dbdce7e839 100644 (file)
@@ -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");