summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-03-29 17:18:08 +0000
committerBrian Paul <[email protected]>2002-03-29 17:18:08 +0000
commita68b8dfd76fa25b8e4ecaf1c6961a958e0fdfd3b (patch)
treebb93cd4b38c426b945d61304c88e900b5199d4ac /src/mesa
parentf66de793654e20704a8180538207a4736ada7996 (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/mesa')
-rw-r--r--src/mesa/math/m_matrix.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mesa/math/m_matrix.c b/src/mesa/math/m_matrix.c
index e06b5684c4b..8ce62d68cd0 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