mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
parent
e5fea0d621
commit
07bfdb478b
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ remove_uniform(struct hash_table *ht, struct qreg reg)
|
|||
|
||||
entry = _mesa_hash_table_search(ht, key);
|
||||
assert(entry);
|
||||
entry->data--;
|
||||
entry->data = (void *)(((uintptr_t) entry->data) - 1);
|
||||
if (entry->data == NULL)
|
||||
_mesa_hash_table_remove(ht, entry);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue