projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0d5c3c
)
tnl: Avoid undefined input value use in insert_3f_viewport_2().
author
Guillaume Melquiond
<guillaume.melquiond@gmail.com>
Tue, 9 Dec 2008 17:29:08 +0000
(09:29 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 9 Dec 2008 17:29:08 +0000
(09:29 -0800)
Bug #16520.
src/mesa/tnl/t_vertex_generic.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_vertex_generic.c
b/src/mesa/tnl/t_vertex_generic.c
index f763522f91f747cdc691036d527cdd2f7e59870c..9812f8c8081aed83eac539a36f07fa389a4fbc9b 100644
(file)
--- 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[1
0] * in[2] + vp[1
4];
+ out[2] = vp[14];
}
static INLINE void insert_3f_viewport_1( const struct tnl_clipspace_attr *a, GLubyte *v,