util/hash_set: Rework the API to know about hashing
[mesa.git] / src / glsl / lower_packed_varyings.cpp
index 78014831566c5d7ae47d91e04b91f0109cb749d5..5e844c792e8df2b1e8293bd05e9207d7677630d7 100644 (file)
@@ -261,6 +261,7 @@ lower_packed_varyings_visitor::run(exec_list *instructions)
              !var->type->contains_integer());
 
       /* Change the old varying into an ordinary global. */
+      assert(var->data.mode != ir_var_temporary);
       var->data.mode = ir_var_auto;
 
       /* Create a reference to the old varying. */