From: Jason Ekstrand Date: Fri, 28 Aug 2015 19:00:25 +0000 (-0700) Subject: glsl/types: Fix up function type hash table insertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea56d0cb1d1f8be93ec6ec9ce24f0be84482b885;p=mesa.git glsl/types: Fix up function type hash table insertion --- diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp index 76814e894ed..c976826733c 100644 --- a/src/glsl/glsl_types.cpp +++ b/src/glsl/glsl_types.cpp @@ -988,7 +988,7 @@ glsl_type::get_function_instance(const glsl_type *return_type, const glsl_type *t = new glsl_type(return_type, params, num_params); mtx_lock(&glsl_type::mutex); - _mesa_hash_table_insert(function_types, t, (void *) t); + entry = _mesa_hash_table_insert(function_types, t, (void *) t); } const glsl_type *t = (const glsl_type *)entry->data;