mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
gallium: Ensure we don't add null objects to the table, as they mark empty handles.
This commit is contained in:
parent
c2bf23b837
commit
cb98f71d42
1 changed files with 4 additions and 0 deletions
|
|
@ -175,6 +175,10 @@ handle_table_set(struct handle_table *ht,
|
|||
if(!handle || handle > ht->size)
|
||||
return 0;
|
||||
|
||||
assert(object);
|
||||
if(!object)
|
||||
return 0;
|
||||
|
||||
index = handle - 1;
|
||||
|
||||
/* grow the table if necessary */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue