From: José Fonseca Date: Thu, 20 Mar 2008 20:34:46 +0000 (+0000) Subject: gallium: Give some chance for the table to actually grow. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9fa88fb3c57f6868dc169b692528cf23ceced76c;p=mesa.git gallium: Give some chance for the table to actually grow. --- diff --git a/src/gallium/auxiliary/util/u_handle_table.c b/src/gallium/auxiliary/util/u_handle_table.c index 8b0f7fca4b1..5a731a6b963 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);