st_glsl_to_tgsi: init have_sqrt field.
authorDave Airlie <airlied@redhat.com>
Mon, 1 Sep 2014 23:51:56 +0000 (09:51 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 16 Sep 2014 05:13:05 +0000 (15:13 +1000)
Coverity reported this.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index 7c2f0fca03c311819aa5f5b5c378dafd47945cf5..b338a9836ae00b3d1fedc8dc7e72380e64f48868 100644 (file)
@@ -3172,6 +3172,7 @@ glsl_to_tgsi_visitor::glsl_to_tgsi_visitor()
    shader_program = NULL;
    shader = NULL;
    options = NULL;
+   have_sqrt = false;
 }
 
 glsl_to_tgsi_visitor::~glsl_to_tgsi_visitor()