Mesa (mesa_7_6_branch): swrast: Initialize tex_coords in handle_sample_op.

Vinson Lee vlee at kemper.freedesktop.org
Sat Dec 12 15:09:28 PST 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 1e444c9960b18bcee5216a49db997b1c5ec14eca
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e444c9960b18bcee5216a49db997b1c5ec14eca

Author: Vinson Lee <vlee at vmware.com>
Date:   Sat Dec 12 15:08:01 2009 -0800

swrast: Initialize tex_coords in handle_sample_op.

---

 src/mesa/swrast/s_atifragshader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/swrast/s_atifragshader.c b/src/mesa/swrast/s_atifragshader.c
index 5fefae6..e88ff19 100644
--- 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;



More information about the mesa-commit mailing list