Use invert_matrix_general() instead of invert_matrix_perspective() because
the later fails for some projection matrices (ala Vis5D with Chromium).
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user