Mesa (master): mesa: Initialize variables in mesa_src_reg_from_ir_src_reg.

Vinson Lee vlee at kemper.freedesktop.org
Sun Aug 22 06:57:43 UTC 2010


Module: Mesa
Branch: master
Commit: 405546882a010885d342b0b40392de0da289374e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=405546882a010885d342b0b40392de0da289374e

Author: Vinson Lee <vlee at vmware.com>
Date:   Sat Aug 21 23:56:24 2010 -0700

mesa: Initialize variables in mesa_src_reg_from_ir_src_reg.

---

 src/mesa/program/ir_to_mesa.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 9fdeaa9..8df85dc 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -2235,6 +2235,8 @@ mesa_src_reg_from_ir_src_reg(ir_to_mesa_src_reg reg)
    mesa_reg.Negate = reg.negate;
    mesa_reg.Abs = 0;
    mesa_reg.HasIndex2 = GL_FALSE;
+   mesa_reg.RelAddr2 = 0;
+   mesa_reg.Index2 = 0;
 
    return mesa_reg;
 }




More information about the mesa-commit mailing list