Fix mmFindBlock function.
authorMichal Krol <mjkrol@gmail.org>
Wed, 2 Aug 2006 14:22:06 +0000 (14:22 +0000)
committerMichal Krol <mjkrol@gmail.org>
Wed, 2 Aug 2006 14:22:06 +0000 (14:22 +0000)
src/mesa/main/mm.c

index e5f445889f9a680ad36471a5996e25c18a1ec997..d080d6db1b81ce3f5bcdc71b1ce0a0e0743bd793 100644 (file)
@@ -193,7 +193,7 @@ mmFindBlock(struct mem_block *heap, int start)
 {
    struct mem_block *p;
 
-   for (p = heap->next_free; p != heap; p = p->next_free) {
+   for (p = heap->next; p != heap; p = p->next) {
       if (p->ofs == start) 
         return p;
    }