diff options
author | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-03-20 20:34:46 +0000 |
---|---|---|
committer | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-03-20 20:40:50 +0000 |
commit | 9fa88fb3c57f6868dc169b692528cf23ceced76c (patch) | |
tree | a89a4033110a1371a2f006649701e6d084dd1383 /src | |
parent | 400b12b4ceda32cc35b60d0484dfd333f1749b8e (diff) |
gallium: Give some chance for the table to actually grow.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_handle_table.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_handle_table.c b/src/gallium/auxiliary/util/u_handle_table.c index 8b0f7fca4b..5a731a6b96 100644 --- a/src/gallium/auxiliary/util/u_handle_table.c +++ b/src/gallium/auxiliary/util/u_handle_table.c @@ -171,8 +171,7 @@ handle_table_set(struct handle_table *ht, assert(ht); assert(handle > 0); - assert(handle <= ht->size); - if(!handle || handle > ht->size) + if(!handle) return 0; assert(object); |