summaryrefslogtreecommitdiff
path: root/src/mesa/math
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-08-07 22:16:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-08-07 22:16:06 +0000
commitc6182ab54c6d11371ad523a89e22380996cf0742 (patch)
tree46702c5ab5d8b8177c14134ec7beea3d89809f21 /src/mesa/math
parent94f494e780b8dc920c773189d458ccd733f39b27 (diff)
fixed bug in DEST_4F template function
Diffstat (limited to 'src/mesa/math')
-rw-r--r--src/mesa/math/m_trans_tmp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/math/m_trans_tmp.h b/src/mesa/math/m_trans_tmp.h
index 212499b352..f182f6ff49 100644
--- a/src/mesa/math/m_trans_tmp.h
+++ b/src/mesa/math/m_trans_tmp.h
@@ -1,4 +1,4 @@
-/* $Id: m_trans_tmp.h,v 1.5 2001/03/12 02:02:36 gareth Exp $ */
+/* $Id: m_trans_tmp.h,v 1.6 2001/08/07 22:16:06 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -53,7 +53,7 @@ static void DEST_4F( GLfloat (*t)[4],
if (SZ >= 1) t[i][0] = TRX_4F(f, 0);
if (SZ >= 2) t[i][1] = TRX_4F(f, 1);
if (SZ >= 3) t[i][2] = TRX_4F(f, 2);
- if (SZ == 4) t[i][3] = TRX_4F(f, 3);
+ if (SZ == 4) t[i][3] = TRX_4F(f, 3); else t[i][3] = 1.0;
}
}
}