Fix big dumbness in glsl_type::get_array_instance
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 31 Mar 2010 23:13:38 +0000 (16:13 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 31 Mar 2010 23:13:38 +0000 (16:13 -0700)
commit299ed08a68d4f603bb72b7635bfa5c6f95776b22
tree4ba3525235b39206770bfb25dd975fb6a473d249
parent0bf381016524ac58f5961877ea0e8651c4922ca3
Fix big dumbness in glsl_type::get_array_instance

hash_table_insert needs to keep the key so that it compare keys on a
following hash_table_find call.  Since key was allocated on the stack,
it disappeared out from under the hash table.
glsl_types.cpp
glsl_types.h