From a68b8dfd76fa25b8e4ecaf1c6961a958e0fdfd3b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 29 Mar 2002 17:18:08 +0000 Subject: Use invert_matrix_general() instead of invert_matrix_perspective() because the later fails for some projection matrices (ala Vis5D with Chromium). --- src/mesa/math/m_matrix.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/mesa/math') diff --git a/src/mesa/math/m_matrix.c b/src/mesa/math/m_matrix.c index e06b5684c4..8ce62d68cd 100644 --- a/src/mesa/math/m_matrix.c +++ b/src/mesa/math/m_matrix.c @@ -1,10 +1,10 @@ -/* $Id: m_matrix.c,v 1.10 2001/12/18 04:06:46 brianp Exp $ */ +/* $Id: m_matrix.c,v 1.11 2002/03/29 17:18:08 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 4.1 + * Version: 4.0.2 * - * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -501,7 +501,14 @@ static inv_mat_func inv_mat_tab[7] = { invert_matrix_general, invert_matrix_identity, invert_matrix_3d_no_rot, +#if 0 + /* Don't use this function for now - it fails when the projection matrix + * is premultiplied by a translation (ala Chromium's tilesort SPU). + */ invert_matrix_perspective, +#else + invert_matrix_general, +#endif invert_matrix_3d, /* lazy! */ invert_matrix_2d_no_rot, invert_matrix_3d -- cgit v1.2.3