summaryrefslogtreecommitdiff
path: root/src/mesa/math
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-09-09 19:58:03 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-09-09 19:58:03 +0000
commit2dab997cb9ddbe47ff414b74679fb99346bb9a06 (patch)
tree34adfbbf3737f830f78f06cb617db29ce8a79dcb /src/mesa/math
parent7dc9a8827d7c248826adc5db0d1bf148d2e233f7 (diff)
fix a bug in analyse_from_scratch() reported by Wes Bethel
Diffstat (limited to 'src/mesa/math')
-rw-r--r--src/mesa/math/m_matrix.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/mesa/math/m_matrix.c b/src/mesa/math/m_matrix.c
index 7d31a41c7a..a1a625c57e 100644
--- a/src/mesa/math/m_matrix.c
+++ b/src/mesa/math/m_matrix.c
@@ -1,16 +1,6 @@
-/**
- * \file m_matrix.c
- * Matrix operations.
- *
- * \note
- * -# 4x4 transformation matrices are stored in memory in column major order.
- * -# Points/vertices are to be thought of as column vectors.
- * -# Transformation of a point p by a matrix M is: p' = M * p
- */
-
/*
* Mesa 3-D graphics library
- * Version: 6.0.1
+ * Version: 6.2
*
* Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
*
@@ -33,6 +23,17 @@
*/
+/**
+ * \file m_matrix.c
+ * Matrix operations.
+ *
+ * \note
+ * -# 4x4 transformation matrices are stored in memory in column major order.
+ * -# Points/vertices are to be thought of as column vectors.
+ * -# Transformation of a point p by a matrix M is: p' = M * p
+ */
+
+
#include "glheader.h"
#include "imports.h"
#include "macros.h"
@@ -1142,7 +1143,7 @@ static void analyse_from_scratch( GLmatrix *mat )
mat->type = MATRIX_2D_NO_ROT;
if ((mask & MASK_NO_2D_SCALE) != MASK_NO_2D_SCALE)
- mat->flags = MAT_FLAG_GENERAL_SCALE;
+ mat->flags |= MAT_FLAG_GENERAL_SCALE;
}
else if ((mask & MASK_2D) == (GLuint) MASK_2D) {
GLfloat mm = DOT2(m, m);