st/mesa: massage the update_vertex_textures() code
[mesa.git] / src / mesa / math / m_debug_xform.c
index df1bc8aadfa3c5d0146b2963c5e67e87fe536582..7d815664a149f10d21354db08d24ee86ad38c727 100644 (file)
@@ -183,7 +183,7 @@ static int test_transform_function( transform_func func, int psize,
       return 0;
    }
 
-   mat->m = (GLfloat *) ALIGN_MALLOC( 16 * sizeof(GLfloat), 16 );
+   mat->m = (GLfloat *) _mesa_align_malloc( 16 * sizeof(GLfloat), 16 );
    mat->type = mtypes[mtype];
 
    m = mat->m;
@@ -273,7 +273,7 @@ static int test_transform_function( transform_func func, int psize,
       }
    }
 
-   ALIGN_FREE( mat->m );
+   _mesa_align_free( mat->m );
    return 1;
 }
 
@@ -317,7 +317,7 @@ void _math_test_all_transform_functions( char *description )
            char buf[100];
            sprintf(buf, "_mesa_transform_tab[0][%d][%s] failed test (%s)",
                    psize, mstrings[mtype], description );
-           _mesa_problem( NULL, buf );
+           _mesa_problem( NULL, "%s", buf );
         }
 #ifdef RUN_DEBUG_BENCHMARK
         if ( mesa_profile )