summaryrefslogtreecommitdiffstats
path: root/src/mesa/math
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-02-24 15:26:34 -0700
committerBrian Paul <[email protected]>2015-02-24 17:10:28 -0700
commit88ff8dee02d43a55d72a22a0172b92e7cd988bbf (patch)
tree90e3e58d3b9ae19009a48856505d1a37cd961851 /src/mesa/math
parentab68219a59c128e018ba68a287228c24890b8f4f (diff)
mesa: remove DEG2RAD macro
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/math')
-rw-r--r--src/mesa/math/m_matrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/math/m_matrix.c b/src/mesa/math/m_matrix.c
index 9d51021feda..0475a7ab234 100644
--- a/src/mesa/math/m_matrix.c
+++ b/src/mesa/math/m_matrix.c
@@ -799,8 +799,8 @@ _math_matrix_rotate( GLmatrix *mat,
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;