gallium: Fix broken logic.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 19 Mar 2008 20:46:08 +0000 (20:46 +0000)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 19 Mar 2008 20:46:08 +0000 (20:46 +0000)
src/gallium/auxiliary/util/u_handle_table.c

index 0bfb9e1b4ae83e73e72eccff57a4da707836c302..8b0f7fca4b15098567a02bdeafa83b699db853aa 100644 (file)
@@ -248,7 +248,7 @@ handle_table_get_next_handle(struct handle_table *ht,
    unsigned index;
    
    for(index = handle; index < ht->size; ++index) {
-      if(!ht->objects[index])
+      if(ht->objects[index])
         return index + 1;
    }