summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2008-12-09 09:29:08 -0800
committerXiang, Haihao <haihao.xiang@intel.com>2008-12-16 14:38:43 +0800
commit369daf6994a127bb3b2ed3f38ffcadc4827359c4 (patch)
tree7020361c662a4c7ebb0e56acc6312d59b039fd99
parent4a239543e4de9703f17e14126cc347d4e6479838 (diff)
tnl: Avoid undefined input value use in insert_3f_viewport_2().
Bug #16520. (cherry picked from commit d507cd749b468751b880194a52ea7171b5dac75c)
-rw-r--r--src/mesa/tnl/t_vertex_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vertex_generic.c b/src/mesa/tnl/t_vertex_generic.c
index f763522f91..9812f8c808 100644
--- a/src/mesa/tnl/t_vertex_generic.c
+++ b/src/mesa/tnl/t_vertex_generic.c
@@ -113,7 +113,7 @@ static INLINE void insert_3f_viewport_2( const struct tnl_clipspace_attr *a, GLu
DEBUG_INSERT;
out[0] = vp[0] * in[0] + vp[12];
out[1] = vp[5] * in[1] + vp[13];
- out[2] = vp[10] * in[2] + vp[14];
+ out[2] = vp[14];
}
static INLINE void insert_3f_viewport_1( const struct tnl_clipspace_attr *a, GLubyte *v,