projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
i965: Fix PBO cache coherency issue after _mesa_meta_pbo_GetTexSubImage().
[mesa.git]
/
src
/
mesa
/
math
/
m_matrix.c
diff --git
a/src/mesa/math/m_matrix.c
b/src/mesa/math/m_matrix.c
index 9d51021feda88cc88c20ac9c099936aa574e6a7e..ecf564c00897fba672703203d7a30a2b78cec37b 100644
(file)
--- a/
src/mesa/math/m_matrix.c
+++ b/
src/mesa/math/m_matrix.c
@@
-50,7
+50,7
@@
/*@{*/
#define MAT_FLAG_IDENTITY 0 /**< is an identity matrix flag.
* (Not actually used - the identity
/*@{*/
#define MAT_FLAG_IDENTITY 0 /**< is an identity matrix flag.
* (Not actually used - the identity
- * matrix is identified by the absen
s
e
+ * matrix is identified by the absen
c
e
* of all other flags.)
*/
#define MAT_FLAG_GENERAL 0x1 /**< is a general matrix flag */
* of all other flags.)
*/
#define MAT_FLAG_GENERAL 0x1 /**< is a general matrix flag */
@@
-799,8
+799,8
@@
_math_matrix_rotate( GLmatrix *mat,
GLfloat m[16];
GLboolean optimized;
GLfloat m[16];
GLboolean optimized;
- s = (GLfloat) sin( angle *
DEG2RAD
);
- c = (GLfloat) cos( angle *
DEG2RAD
);
+ s = (GLfloat) sin( angle *
M_PI / 180.0
);
+ c = (GLfloat) cos( angle *
M_PI / 180.0
);
memcpy(m, Identity, sizeof(GLfloat)*16);
optimized = GL_FALSE;
memcpy(m, Identity, sizeof(GLfloat)*16);
optimized = GL_FALSE;