summaryrefslogtreecommitdiff
path: root/src/mesa/math/m_translate.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2001-05-09 14:12:34 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2001-05-09 14:12:34 +0000
commit5f2230c7bf9432187103ab6c890c0d560c203d5c (patch)
tree40651a44f4793e005370b7ecd4caebe44576d0e9 /src/mesa/math/m_translate.c
parentbcf749e83a4844972b8fbb84e9762a9b1ec77c5f (diff)
add missing translate functions
Diffstat (limited to 'src/mesa/math/m_translate.c')
-rw-r--r--src/mesa/math/m_translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/math/m_translate.c b/src/mesa/math/m_translate.c
index dd7a59168c..d12babe5b8 100644
--- a/src/mesa/math/m_translate.c
+++ b/src/mesa/math/m_translate.c
@@ -1,4 +1,4 @@
-/* $Id: m_translate.c,v 1.7 2001/04/28 08:39:18 keithw Exp $ */
+/* $Id: m_translate.c,v 1.8 2001/05/09 14:12:34 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -121,7 +121,7 @@ static trans_4f_func _math_trans_4f_tab[5][MAX_TYPES];
#define SRC GLbyte
#define SRC_IDX TYPE_IDX(GL_BYTE)
#define TRX_3F(f,n) BYTE_TO_FLOAT( PTR_ELT(f,n) )
-#define TRX_4F(f,n) (GLfloat)( PTR_ELT(f,n) )
+#define TRX_4F(f,n) BYTE_TO_FLOAT( PTR_ELT(f,n) )
#define TRX_UB(ub, f,n) ub = BYTE_TO_UBYTE( PTR_ELT(f,n) )
#define TRX_US(ch, f,n) ch = BYTE_TO_USHORT( PTR_ELT(f,n) )
#define TRX_UI(f,n) (PTR_ELT(f,n) < 0 ? 0 : (GLuint) PTR_ELT(f,n))