[Mesa-dev] [PATCH] glsl: Initialize lower_vector_visitor::dont_lower_swz in constructor.
Vinson Lee
vlee at freedesktop.org
Sun May 13 00:48:38 PDT 2012
Fix uninitialized scalar field defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
src/glsl/lower_vector.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glsl/lower_vector.cpp b/src/glsl/lower_vector.cpp
index 57963a1..6f031d5 100644
--- a/src/glsl/lower_vector.cpp
+++ b/src/glsl/lower_vector.cpp
@@ -33,7 +33,7 @@
class lower_vector_visitor : public ir_rvalue_visitor {
public:
- lower_vector_visitor() : progress(false)
+ lower_vector_visitor() : dont_lower_swz(false), progress(false)
{
/* empty */
}
--
1.7.10.1
More information about the mesa-dev
mailing list