projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1d361b
)
swrast: Initialize tex_coords in handle_sample_op.
author
Vinson Lee
<vlee@vmware.com>
Sat, 12 Dec 2009 23:08:01 +0000
(15:08 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Sat, 12 Dec 2009 23:08:01 +0000
(15:08 -0800)
src/mesa/swrast/s_atifragshader.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_atifragshader.c
b/src/mesa/swrast/s_atifragshader.c
index 5fefae6c42b38ce1cf3928acd3a68ce11b42c363..e88ff1912392eb349c1f8e9dcf21bab2cb698d26 100644
(file)
--- a/
src/mesa/swrast/s_atifragshader.c
+++ b/
src/mesa/swrast/s_atifragshader.c
@@
-279,7
+279,7
@@
handle_sample_op(GLcontext * ctx, struct atifs_machine *machine,
/* sample from unit idx using texinst->src as coords */
GLuint swizzle = texinst->swizzle;
GLuint coord_source = texinst->src;
- GLfloat tex_coords[4];
+ GLfloat tex_coords[4]
= { 0 }
;
if (coord_source >= GL_TEXTURE0_ARB && coord_source <= GL_TEXTURE7_ARB) {
coord_source -= GL_TEXTURE0_ARB;