From: José Fonseca Date: Wed, 19 Mar 2008 20:46:08 +0000 (+0000) Subject: gallium: Fix broken logic. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df5ba799fa929d4c739be9d11d3f1000afc265b2;p=mesa.git gallium: Fix broken logic. --- diff --git a/src/gallium/auxiliary/util/u_handle_table.c b/src/gallium/auxiliary/util/u_handle_table.c index 0bfb9e1b4ae..8b0f7fca4b1 100644 --- a/src/gallium/auxiliary/util/u_handle_table.c +++ b/src/gallium/auxiliary/util/u_handle_table.c @@ -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; }