glsl/lower_output_reads: fix geometry shader output handling with conditional emit
[mesa.git] / src / compiler / glsl / lower_output_reads.cpp
index 732f4d3d8496cd9459c99669d48ade9dc88b4482..8a375ac0ad55b0d5d9996dbb6f92d1b84e4a4d64 100644 (file)
@@ -157,7 +157,6 @@ ir_visitor_status
 output_read_remover::visit_leave(ir_emit_vertex *ir)
 {
    hash_table_call_foreach(replacements, emit_return_copy, ir);
-   _mesa_hash_table_clear(replacements, NULL);
    return visit_continue;
 }