OSDN Git Service

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 0bfb9e1..8b0f7fc 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;
    }