diff options
| author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-03-29 17:18:08 +0000 | 
|---|---|---|
| committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-03-29 17:18:08 +0000 | 
| commit | a68b8dfd76fa25b8e4ecaf1c6961a958e0fdfd3b (patch) | |
| tree | bb93cd4b38c426b945d61304c88e900b5199d4ac /src | |
| parent | f66de793654e20704a8180538207a4736ada7996 (diff) | |
Use invert_matrix_general() instead of invert_matrix_perspective() because
the later fails for some projection matrices (ala Vis5D with Chromium).
Diffstat (limited to 'src')
| -rw-r--r-- | src/mesa/math/m_matrix.c | 13 | 
1 files changed, 10 insertions, 3 deletions
| 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 | 
