From ea56d0cb1d1f8be93ec6ec9ce24f0be84482b885 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 28 Aug 2015 12:00:25 -0700 Subject: [PATCH] glsl/types: Fix up function type hash table insertion --- src/glsl/glsl_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2