diff options
author | Vinson Lee <[email protected]> | 2012-08-08 00:08:43 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2012-08-08 22:36:27 -0700 |
commit | 34665381713249c29b7da5028396222dfea477c2 (patch) | |
tree | eeecefb2ff3f34a7aad7c5df437c9de07742d4d6 /src/mesa | |
parent | 68bccc40f55aee7f4af8eb64b15a95f0b49d6a17 (diff) |
st/mesa: Initialize tgsi_texture_offset Padding field.
Fixes uninitialized scalar variable defect reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 43c80be13e2..39717b6fd25 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -4178,6 +4178,7 @@ translate_tex_offset(struct st_translate *t, offset.SwizzleX = in_offset->SwizzleX; offset.SwizzleY = in_offset->SwizzleY; offset.SwizzleZ = in_offset->SwizzleZ; + offset.Padding = 0; return offset; } |