aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-08-21 23:56:24 -0700
committerVinson Lee <[email protected]>2010-08-21 23:56:24 -0700
commit405546882a010885d342b0b40392de0da289374e (patch)
treeb261f1496cb1fc0637846f65a0a313cbf5d07c52 /src/mesa/program
parent3bdbccef2adfc699a737d7d25911004938bbbfcc (diff)
mesa: Initialize variables in mesa_src_reg_from_ir_src_reg.
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp2
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 9fdeaa9be34..8df85dc3ea1 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;
}