mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 00:00:25 +01:00
st_glsl_to_tgsi: cleanup variable storage search.
I forgot to put the cleanup in earlier. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
f4b5510872
commit
cb2a13e895
1 changed files with 4 additions and 6 deletions
|
|
@ -1310,15 +1310,13 @@ glsl_to_tgsi_visitor::get_temp(const glsl_type *type)
|
|||
variable_storage *
|
||||
glsl_to_tgsi_visitor::find_variable_storage(ir_variable *var)
|
||||
{
|
||||
struct hash_entry *entry = _mesa_hash_table_search(this->variables,
|
||||
var);
|
||||
variable_storage *storage;
|
||||
struct hash_entry *entry;
|
||||
|
||||
entry = _mesa_hash_table_search(this->variables, var);
|
||||
if (!entry)
|
||||
return NULL;
|
||||
|
||||
storage = (variable_storage *)entry->data;
|
||||
|
||||
return storage;
|
||||
return (variable_storage *)entry->data;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue