summaryrefslogtreecommitdiffstats
path: root/src/glsl/lower_vector.cpp
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-09-23 21:47:48 -0700
committerVinson Lee <[email protected]>2013-09-24 22:51:23 -0700
commit94e3ecae2d0d7b22ca545026345ca872ec2edf72 (patch)
treebb1b1dae47620ff6754c2083012318805076c502 /src/glsl/lower_vector.cpp
parent74b02b8e3fd946db7bd3e1ebee86b5079b674c93 (diff)
glsl: Initialize lower_vector_visitor::dont_lower_swz.
Fixes "Uninitialized scalar field" defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
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 9172b6af7b5..a658410ae6f 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 */
}