From d507cd749b468751b880194a52ea7171b5dac75c Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Tue, 9 Dec 2008 09:29:08 -0800 Subject: [PATCH] tnl: Avoid undefined input value use in insert_3f_viewport_2(). Bug #16520. --- src/mesa/tnl/t_vertex_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/tnl/t_vertex_generic.c b/src/mesa/tnl/t_vertex_generic.c index f763522f91f..9812f8c8081 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, -- 2.30.2