gallium: Give some chance for the table to actually grow.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 20 Mar 2008 20:34:46 +0000 (20:34 +0000)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 20 Mar 2008 20:40:50 +0000 (20:40 +0000)
src/gallium/auxiliary/util/u_handle_table.c

index 8b0f7fca4b15098567a02bdeafa83b699db853aa..5a731a6b9636cdd3d7dc37d8a77d02e6f4a3dd2a 100644 (file)
@@ -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);