summaryrefslogtreecommitdiffstats
path: root/src/glsl/lower_vector.cpp
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2013-09-23 21:47:48 -0700
committerVinson Lee <vlee@freedesktop.org>2013-09-24 22:51:23 -0700
commit94e3ecae2d0d7b22ca545026345ca872ec2edf72 (patch)
treebb1b1dae47620ff6754c2083012318805076c502 /src/glsl/lower_vector.cpp
parent74b02b8e3fd946db7bd3e1ebee86b5079b674c93 (diff)
downloadexternal_mesa3d-94e3ecae2d0d7b22ca545026345ca872ec2edf72.zip
external_mesa3d-94e3ecae2d0d7b22ca545026345ca872ec2edf72.tar.gz
external_mesa3d-94e3ecae2d0d7b22ca545026345ca872ec2edf72.tar.bz2
glsl: Initialize lower_vector_visitor::dont_lower_swz.
Fixes "Uninitialized scalar field" defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/glsl/lower_vector.cpp')
-rw-r--r--src/glsl/lower_vector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/lower_vector.cpp b/src/glsl/lower_vector.cpp
index 9172b6a..a658410 100644
--- a/src/glsl/lower_vector.cpp
+++ b/src/glsl/lower_vector.cpp
@@ -35,7 +35,7 @@ namespace {
class lower_vector_visitor : public ir_rvalue_visitor {
public:
- lower_vector_visitor() : progress(false)
+ lower_vector_visitor() : dont_lower_swz(false), progress(false)
{
/* empty */
}