glsl2: Make the HV actually call ir_texture's visit_leave.
authorEric Anholt <eric@anholt.net>
Thu, 5 Aug 2010 20:33:38 +0000 (13:33 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 5 Aug 2010 20:34:02 +0000 (13:34 -0700)
src/glsl/ir_hv_accept.cpp

index 8989605e26f9ad881fb3d940d18d66b434d3cc9e..6dae4ed2f3f5420dce24bd8a98d6c37cff9b6945 100644 (file)
@@ -212,7 +212,7 @@ ir_texture::accept(ir_hierarchical_visitor *v)
       break;
    }
 
-   return visit_continue_with_parent;
+   return (s == visit_stop) ? s : v->visit_leave(this);
 }