summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2012-11-30 20:24:33 +1000
committerDave Airlie <[email protected]>2012-12-01 11:27:16 +1000
commitf3476ec8fa5a94d469a12318c537b13ce9cc5a45 (patch)
treed1b7697d41e7f388ada26dbddba8c7ccc16721ac
parent906670a7906a785210c872f637239bf4afa5b63d (diff)
glsl: fix uninitialised variable from constructor
Coverity pointed out this uninitialised class member. Note: This is a candidate for stable branches. Reviewed-by: Brian Paul <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r--src/glsl/ir_function_detect_recursion.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_function_detect_recursion.cpp b/src/glsl/ir_function_detect_recursion.cpp
index 0a5e647cd88..4b39f9724e7 100644
--- a/src/glsl/ir_function_detect_recursion.cpp
+++ b/src/glsl/ir_function_detect_recursion.cpp
@@ -173,6 +173,7 @@ public:
has_recursion_visitor()
: current(NULL)
{
+ progress = false;
this->mem_ctx = ralloc_context(NULL);
this->function_hash = hash_table_ctor(0, hash_table_pointer_hash,
hash_table_pointer_compare);