mesa: only clear matrix MAT_DIRTY_INVERSE flag when we actually compute the inverse
authorBrian Paul <brianp@vmware.com>
Fri, 3 Apr 2009 18:49:03 +0000 (12:49 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 3 Apr 2009 18:49:03 +0000 (12:49 -0600)
commitce461ffc5aa2ea6941d6722e8ed473cda8c17833
tree7811162b9dad12e17caf341678a44a54658d60fa
parentb8a200ac9d11c09646de9b7d3f3f64a742c6abe3
mesa: only clear matrix MAT_DIRTY_INVERSE flag when we actually compute the inverse

If _math_matrix_analyse() got called before we allocated the inverse
matrix array we could lose the flag indicating that we needed to compute
the inverse.  This could happen with certain vertex shader cases.
src/mesa/math/m_matrix.c